13
0
geforkt von Mirrors/Paper
Paper/Spigot-Server-Patches/0391-Mark-entities-as-being-ticked-when-notifying-navigat.patch
Spottedleaf d16a5d8813 Performance patches prerequisite (#2802)
Prereq changes for the coming storm of performance patches.
Includes optimising incremental saving
2020-01-27 18:16:53 -06:00

30 Zeilen
1.1 KiB
Diff

From 90d7d42ae7fae9a7933c728771736312bd08504c Mon Sep 17 00:00:00 2001
From: Shane Freeder <theboyetronic@gmail.com>
Date: Sun, 28 Jul 2019 00:51:11 +0100
Subject: [PATCH] Mark entities as being ticked when notifying navigation
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
index e9d3424103..0f652e58e1 100644
--- a/src/main/java/net/minecraft/server/WorldServer.java
+++ b/src/main/java/net/minecraft/server/WorldServer.java
@@ -1392,6 +1392,7 @@ public class WorldServer extends World {
VoxelShape voxelshape1 = iblockdata1.getCollisionShape(this, blockposition);
if (VoxelShapes.c(voxelshape, voxelshape1, OperatorBoolean.NOT_SAME)) {
+ boolean wasTicking = this.tickingEntities; this.tickingEntities = true; // Paper
Iterator iterator = this.navigators.iterator();
while (iterator.hasNext()) {
@@ -1402,6 +1403,7 @@ public class WorldServer extends World {
}
}
+ this.tickingEntities = wasTicking; // Paper
}
}
--
2.25.0.windows.1