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-03-16 14:04:28 +01:00
|
|
|
index 280ecd3634d77b93cf0923f4c4a5cfd7f114e848..7282ac286e4f1333c25a8515275b27b9efb19343 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-03-16 14:04:28 +01:00
|
|
|
@@ -1474,6 +1474,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-03-16 14:04:28 +01:00
|
|
|
@@ -1495,6 +1496,7 @@ public class WorldServer extends World implements GeneratorAccessSeed {
|
2019-07-28 01:52:13 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ this.tickingEntities = wasTicking; // Paper
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|