mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
Prevent despawned navigators being readded (#7574)
This commit is contained in:
parent
e54a8fc8f1
commit
b35c03a546
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
public void tickNonPassenger(Entity entity) {
|
public void tickNonPassenger(Entity entity) {
|
||||||
// Paper start - log detailed entity tick information
|
// Paper start - log detailed entity tick information
|
||||||
io.papermc.paper.util.TickThread.ensureTickThread("Cannot tick an entity off-main");
|
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 {
|
try {
|
||||||
if (currentlyTickingEntity.get() == null) {
|
if (currentlyTickingEntity.get() == null) {
|
||||||
currentlyTickingEntity.lazySet(entity);
|
currentlyTickingEntity.lazySet(entity);
|
||||||
|
|
Loading…
Reference in a new issue