ChatWorld should check if receiving player is blocking.

Thanks to Enryu.
This commit is contained in:
MobiusDevelopment
2022-10-01 09:56:08 +00:00
parent a1b8557c8f
commit 961a2f88c1
24 changed files with 72 additions and 72 deletions

View File

@@ -100,7 +100,7 @@ public class ChatWorld implements IChatHandler
{
for (Player player : World.getInstance().getAllGoodPlayers())
{
if (player.isNotBlocked(activeChar))
if (activeChar.isNotBlocked(player))
{
player.sendPacket(cs);
}
@@ -110,7 +110,7 @@ public class ChatWorld implements IChatHandler
{
for (Player player : World.getInstance().getAllEvilPlayers())
{
if (player.isNotBlocked(activeChar))
if (activeChar.isNotBlocked(player))
{
player.sendPacket(cs);
}
@@ -121,7 +121,7 @@ public class ChatWorld implements IChatHandler
{
for (Player player : World.getInstance().getPlayers())
{
if (player.isNotBlocked(activeChar))
if (activeChar.isNotBlocked(player))
{
player.sendPacket(cs);
}