Removed redundant NpcKnownList checks.
This commit is contained in:
parent
45967e4fd8
commit
c680aa2127
@ -41,9 +41,9 @@ public class NpcKnownList extends CreatureKnownList
|
||||
}
|
||||
|
||||
// Broadcast correct walking NPC position.
|
||||
if (getActiveObject().isNpc() && (object instanceof Creature) && object.isPlayer() && getActiveChar().isMoving() && !getActiveChar().isInCombat())
|
||||
if (object.isPlayer() && getActiveChar().isMoving() && !getActiveChar().isInCombat())
|
||||
{
|
||||
((Creature) object).broadcastMoveToLocation();
|
||||
getActiveChar().broadcastMoveToLocation();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -41,9 +41,9 @@ public class NpcKnownList extends CreatureKnownList
|
||||
}
|
||||
|
||||
// Broadcast correct walking NPC position.
|
||||
if (getActiveObject().isNpc() && (object instanceof Creature) && object.isPlayer() && getActiveChar().isMoving() && !getActiveChar().isInCombat())
|
||||
if (object.isPlayer() && getActiveChar().isMoving() && !getActiveChar().isInCombat())
|
||||
{
|
||||
((Creature) object).broadcastMoveToLocation();
|
||||
getActiveChar().broadcastMoveToLocation();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user