Stops NPC's from attacking disconnected player when last ping received over 1 minute ago.

This commit is contained in:
Nemesis- 2012-05-08 19:50:17 +03:00
parent fc1444206b
commit 1b8e848125

View File

@ -351,7 +351,7 @@ public class Npc extends Mob {
|| !p.nextTo(this)
|| !p.getLocation().inBounds(loc.minX - 4,
loc.minY - 4, loc.maxX + 4,
loc.maxY + 4)) {
loc.maxY + 4) || GameEngine.getTime() - p.getLastPing() > 60000) {
continue;
}