Removed double range check from general chat handler.
This commit is contained in:
@@ -91,7 +91,7 @@ public final class ChatGeneral implements IChatHandler
|
|||||||
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
|
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
|
||||||
L2World.getInstance().forEachVisibleObjectInRange(activeChar, L2PcInstance.class, 1250, player ->
|
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)
|
if (Config.FACTION_SYSTEM_ENABLED)
|
||||||
{
|
{
|
||||||
|
@@ -91,7 +91,7 @@ public final class ChatGeneral implements IChatHandler
|
|||||||
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
|
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
|
||||||
L2World.getInstance().forEachVisibleObjectInRange(activeChar, L2PcInstance.class, 1250, player ->
|
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)
|
if (Config.FACTION_SYSTEM_ENABLED)
|
||||||
{
|
{
|
||||||
|
@@ -91,7 +91,7 @@ public final class ChatGeneral implements IChatHandler
|
|||||||
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
|
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
|
||||||
L2World.getInstance().forEachVisibleObjectInRange(activeChar, L2PcInstance.class, 1250, player ->
|
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)
|
if (Config.FACTION_SYSTEM_ENABLED)
|
||||||
{
|
{
|
||||||
|
@@ -91,7 +91,7 @@ public final class ChatGeneral implements IChatHandler
|
|||||||
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
|
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
|
||||||
L2World.getInstance().forEachVisibleObjectInRange(activeChar, L2PcInstance.class, 1250, player ->
|
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)
|
if (Config.FACTION_SYSTEM_ENABLED)
|
||||||
{
|
{
|
||||||
|
@@ -91,7 +91,7 @@ public final class ChatGeneral implements IChatHandler
|
|||||||
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
|
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
|
||||||
L2World.getInstance().forEachVisibleObjectInRange(activeChar, L2PcInstance.class, 1250, player ->
|
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)
|
if (Config.FACTION_SYSTEM_ENABLED)
|
||||||
{
|
{
|
||||||
|
@@ -91,7 +91,7 @@ public final class ChatGeneral implements IChatHandler
|
|||||||
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
|
final CreatureSay csRandom = new CreatureSay(activeChar.getObjectId(), type, activeChar.getAppearance().getVisibleName(), ChatRandomizer.randomize(text));
|
||||||
L2World.getInstance().forEachVisibleObjectInRange(activeChar, L2PcInstance.class, 1250, player ->
|
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)
|
if (Config.FACTION_SYSTEM_ENABLED)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user