Removed double range check from general chat handler.

This commit is contained in:
MobiusDev 2018-04-10 16:11:36 +00:00
parent fe9d119101
commit f61d7bd3e0
6 changed files with 6 additions and 6 deletions

View File

@ -91,7 +91,7 @@ public final class ChatGeneral implements IChatHandler
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
L2World.getInstance().forEachVisibleObjectInRange(activeChar, L2PcInstance.class, 1250, player ->
{
if ((player != null) && activeChar.isInsideRadius(player, 1250, false, true) && !BlockList.isBlocked(player, activeChar))
if ((player != null) && !BlockList.isBlocked(player, activeChar))
{
if (Config.FACTION_SYSTEM_ENABLED)
{

View File

@ -91,7 +91,7 @@ public final class ChatGeneral implements IChatHandler
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
L2World.getInstance().forEachVisibleObjectInRange(activeChar, L2PcInstance.class, 1250, player ->
{
if ((player != null) && activeChar.isInsideRadius(player, 1250, false, true) && !BlockList.isBlocked(player, activeChar))
if ((player != null) && !BlockList.isBlocked(player, activeChar))
{
if (Config.FACTION_SYSTEM_ENABLED)
{

View File

@ -91,7 +91,7 @@ public final class ChatGeneral implements IChatHandler
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
L2World.getInstance().forEachVisibleObjectInRange(activeChar, L2PcInstance.class, 1250, player ->
{
if ((player != null) && activeChar.isInsideRadius(player, 1250, false, true) && !BlockList.isBlocked(player, activeChar))
if ((player != null) && !BlockList.isBlocked(player, activeChar))
{
if (Config.FACTION_SYSTEM_ENABLED)
{

View File

@ -91,7 +91,7 @@ public final class ChatGeneral implements IChatHandler
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
L2World.getInstance().forEachVisibleObjectInRange(activeChar, L2PcInstance.class, 1250, player ->
{
if ((player != null) && activeChar.isInsideRadius(player, 1250, false, true) && !BlockList.isBlocked(player, activeChar))
if ((player != null) && !BlockList.isBlocked(player, activeChar))
{
if (Config.FACTION_SYSTEM_ENABLED)
{

View File

@ -91,7 +91,7 @@ public final class ChatGeneral implements IChatHandler
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
L2World.getInstance().forEachVisibleObjectInRange(activeChar, L2PcInstance.class, 1250, player ->
{
if ((player != null) && activeChar.isInsideRadius(player, 1250, false, true) && !BlockList.isBlocked(player, activeChar))
if ((player != null) && !BlockList.isBlocked(player, activeChar))
{
if (Config.FACTION_SYSTEM_ENABLED)
{

View File

@ -91,7 +91,7 @@ public final class ChatGeneral implements IChatHandler
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
L2World.getInstance().forEachVisibleObjectInRange(activeChar, L2PcInstance.class, 1250, player ->
{
if ((player != null) && activeChar.isInsideRadius(player, 1250, false, true) && !BlockList.isBlocked(player, activeChar))
if ((player != null) && !BlockList.isBlocked(player, activeChar))
{
if (Config.FACTION_SYSTEM_ENABLED)
{