Prevent despawned navigators being readded (#7574)

This commit is contained in:
Owen1212055 2022-03-10 21:39:11 -05:00
parent e54a8fc8f1
commit b35c03a546

View file

@ -117,7 +117,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
public void tickNonPassenger(Entity entity) {
// Paper start - log detailed entity tick information
io.papermc.paper.util.TickThread.ensureTickThread("Cannot tick an entity off-main");
+ this.entityManager.updateNavigatorsInRegion(entity); // Paper - optimise notify
+ if (!entity.isRemoved()) this.entityManager.updateNavigatorsInRegion(entity); // Paper - optimise notify
try {
if (currentlyTickingEntity.get() == null) {
currentlyTickingEntity.lazySet(entity);