Unchange where tracker replacement happens

This commit is contained in:
fullwall 2016-08-21 21:53:08 +08:00
parent e344158ff4
commit 95261e4548
2 changed files with 3 additions and 1 deletions

View File

@ -256,6 +256,9 @@ public class CitizensNPC extends AbstractNPC {
if (NMS.getStepHeight(entity) < 1) {
NMS.setStepHeight(entity, 1);
}
if (getEntity() instanceof Player) {
NMS.replaceTrackerEntry((Player) getEntity());
}
}
return true;

View File

@ -283,7 +283,6 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
if (updateCounter + 1 > Setting.PACKET_UPDATE_DELAY.asInt()) {
updateEffects = true;
}
NMS.replaceTrackerEntry(getBukkitEntity());
tickPotionEffects();
boolean navigating = npc.getNavigator().isNavigating();