mirror of
https://github.com/moparisthebest/MoparClassic
synced 2025-02-28 08:21:52 -05:00
Stops NPC's from attacking disconnected player when last ping received over 1 minute ago.
This commit is contained in:
parent
fc1444206b
commit
1b8e848125
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user