From c0f4b24e3a7bfd9eaefe8041d8c56d1f451619b5 Mon Sep 17 00:00:00 2001 From: Andrew Mollenkamp <34605013+AJMFactsheets@users.noreply.github.com> Date: Thu, 27 Feb 2020 02:42:48 -0600 Subject: [PATCH] Fix random ticks (Fixes #2990) (#2992) --- .../0438-Optimise-random-block-ticking.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Spigot-Server-Patches/0438-Optimise-random-block-ticking.patch b/Spigot-Server-Patches/0438-Optimise-random-block-ticking.patch index 54d34afce..633124f96 100644 --- a/Spigot-Server-Patches/0438-Optimise-random-block-ticking.patch +++ b/Spigot-Server-Patches/0438-Optimise-random-block-ticking.patch @@ -328,6 +328,19 @@ index 44aed67274..fa664897fb 100644 @FunctionalInterface public interface a { +diff --git a/src/main/java/net/minecraft/server/EntityTurtle.java b/src/main/java/net/minecraft/server/EntityTurtle.java +index dd02cb34..b24a5100 100644 +--- a/src/main/java/net/minecraft/server/EntityTurtle.java ++++ b/src/main/java/net/minecraft/server/EntityTurtle.java +@@ -29,7 +29,7 @@ public class EntityTurtle extends EntityAnimal { + + public final void setHome(BlockPosition pos) { g(pos); } // Paper - OBFHELPER + public void g(BlockPosition blockposition) { +- this.datawatcher.set(EntityTurtle.bx, blockposition); ++ this.datawatcher.set(EntityTurtle.bx, blockposition.immutableCopy()); // Paper - make sure home position can't change + } + + public final BlockPosition getHome() { return this.es(); } // Paper - OBFHELPER diff --git a/src/main/java/net/minecraft/server/IBlockData.java b/src/main/java/net/minecraft/server/IBlockData.java index de43881653..e821c236b4 100644 --- a/src/main/java/net/minecraft/server/IBlockData.java