aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0694-Don-t-tick-markers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0694-Don-t-tick-markers.patch')
-rw-r--r--patches/server/0694-Don-t-tick-markers.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0694-Don-t-tick-markers.patch b/patches/server/0694-Don-t-tick-markers.patch
index e5c290a988..137b6302b6 100644
--- a/patches/server/0694-Don-t-tick-markers.patch
+++ b/patches/server/0694-Don-t-tick-markers.patch
@@ -10,15 +10,15 @@ list is only used in the tick and tickPassenger methods, so we can safely not ad
markers to it. When the config option is set to true, markers are ticked as normal.
diff --git a/src/main/java/io/papermc/paper/command/subcommands/EntityCommand.java b/src/main/java/io/papermc/paper/command/subcommands/EntityCommand.java
-index 67fcba634f8183bb33834ac3b2c3dcfb8d87129e..777b789fdcdf297309cfb36fc7f77e3fdb6327ca 100644
+index 9d9d133e0d973ecda1ef1efc872a51ee10463fd1..f671b74e4179fc29bc600b52e456ba9f78d8bbd6 100644
--- a/src/main/java/io/papermc/paper/command/subcommands/EntityCommand.java
+++ b/src/main/java/io/papermc/paper/command/subcommands/EntityCommand.java
@@ -109,7 +109,7 @@ public final class EntityCommand implements PaperSubcommand {
ChunkPos chunk = e.chunkPosition();
info.left++;
info.right.put(chunk, info.right.getOrDefault(chunk, 0) + 1);
-- if (!chunkProviderServer.isPositionTicking(e)) {
-+ if (!chunkProviderServer.isPositionTicking(e) || (e instanceof net.minecraft.world.entity.Marker && !world.paperConfig().entities.markers.tick)) { // Paper - Configurable marker ticking
+- if (!world.isPositionEntityTicking(e.blockPosition())) {
++ if (!world.isPositionEntityTicking(e.blockPosition()) || (e instanceof net.minecraft.world.entity.Marker && !world.paperConfig().entities.markers.tick)) { // Paper - Configurable marker ticking
nonEntityTicking.merge(key, 1, Integer::sum);
}
});