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
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
|
2020-07-14 12:58:55 +02:00
|
|
|
index 00446fabbeac8105678cecb9f7f9f3dac4a43d74..b1ac1387e7c9e67120f0155957a4e66cc92a6d0d 100644
|
2019-07-28 01:52:13 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/WorldServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldServer.java
|
2020-07-14 12:58:55 +02:00
|
|
|
@@ -1318,6 +1318,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()) {
|
2020-07-14 12:58:55 +02:00
|
|
|
@@ -1328,6 +1329,7 @@ public class WorldServer extends World implements GeneratorAccessSeed {
|
2019-07-28 01:52:13 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ this.tickingEntities = wasTicking; // Paper
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|