2020-05-06 11:48:49 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2019-07-28 01:52:13 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2021-03-16 08:19:45 +01:00
|
|
|
diff --git a/src/main/java/net/minecraft/server/level/WorldServer.java b/src/main/java/net/minecraft/server/level/WorldServer.java
|
2021-04-07 07:17:32 +02:00
|
|
|
index caf3d4df460d2d6dad6e68a68e1256e3603e3891..1b05d2394244d85a63ecd8336f7dd1d05f4fdffe 100644
|
2021-03-16 08:19:45 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/level/WorldServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/level/WorldServer.java
|
2021-04-07 07:17:32 +02:00
|
|
|
@@ -1476,6 +1476,7 @@ public class WorldServer extends World implements GeneratorAccessSeed {
|
2019-07-28 01:52:13 +02:00
|
|
|
VoxelShape voxelshape1 = iblockdata1.getCollisionShape(this, blockposition);
|
|
|
|
|
|
|
|
if (VoxelShapes.c(voxelshape, voxelshape1, OperatorBoolean.NOT_SAME)) {
|
|
|
|
+ boolean wasTicking = this.tickingEntities; this.tickingEntities = true; // Paper
|
2019-12-12 17:20:43 +01:00
|
|
|
Iterator iterator = this.navigators.iterator();
|
2019-07-28 01:52:13 +02:00
|
|
|
|
|
|
|
while (iterator.hasNext()) {
|
2021-04-07 07:17:32 +02:00
|
|
|
@@ -1497,6 +1498,7 @@ public class WorldServer extends World implements GeneratorAccessSeed {
|
2019-07-28 01:52:13 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ this.tickingEntities = wasTicking; // Paper
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|