mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 10:36:10 +01:00
Update tracking range on seen
This commit is contained in:
parent
0ac2d3693a
commit
089ffe0dfe
@ -119,6 +119,11 @@ public class PlayerlistTrackerEntry extends EntityTrackerEntry {
|
|||||||
Bukkit.getPluginManager().callEvent(event);
|
Bukkit.getPluginManager().callEvent(event);
|
||||||
if (event.isCancelled())
|
if (event.isCancelled())
|
||||||
return;
|
return;
|
||||||
|
Integer trackingRange = npc.data().get(NPC.Metadata.TRACKING_RANGE);
|
||||||
|
if (trackingRange != null && npc.data().get("last-tracking-range", -1) != b) {
|
||||||
|
b = trackingRange;
|
||||||
|
npc.data().set("last-tracking-range", trackingRange);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
super.updatePlayer(entityplayer);
|
super.updatePlayer(entityplayer);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user