From 1e7833a2b736afa465ff7806432d4614d70a3362 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Fri, 13 Dec 2019 22:48:40 +0000 Subject: [PATCH] Restore zero-tick farms fix They no longer directly call the tick method, so, one step forward... --- ...-zero-tick-instant-grow-farms-MC-113809.patch | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Spigot-Server-Patches/Fix-zero-tick-instant-grow-farms-MC-113809.patch b/Spigot-Server-Patches/Fix-zero-tick-instant-grow-farms-MC-113809.patch index 98ca0a77cf..dd7382a963 100644 --- a/Spigot-Server-Patches/Fix-zero-tick-instant-grow-farms-MC-113809.patch +++ b/Spigot-Server-Patches/Fix-zero-tick-instant-grow-farms-MC-113809.patch @@ -81,17 +81,17 @@ index 55b07444e..3bc3c5aa2 100644 for (i = 1; worldserver.getType(blockposition.down(i)).getBlock() == this; ++i) { diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java -index 4da34b6dd..722384a91 100644 +index 4da34b6dd..83fb8737a 100644 --- a/src/main/java/net/minecraft/server/WorldServer.java +++ b/src/main/java/net/minecraft/server/WorldServer.java @@ -0,0 +0,0 @@ public class WorldServer extends World { - IBlockData iblockdata = this.getType(nextticklistentry.a); + IBlockData iblockdata = chunksection.getType(blockposition2.getX() - j, blockposition2.getY() - j1, blockposition2.getZ() - k); - if (iblockdata.getBlock() == nextticklistentry.b()) { -+ iblockdata.getBlock().randomTick = true; // Paper - fix MC-113809 - iblockdata.a(this, nextticklistentry.a, this.random); -+ iblockdata.getBlock().randomTick = false; // Paper - fix MC-113809 - } + if (iblockdata.q()) { ++ iblockdata.getBlock().randomTick = true; // Paper - fix MC-113809 + iblockdata.b(this, blockposition2, this.random); ++ iblockdata.getBlock().randomTick = false; // Paper - fix MC-113809 + } - } + Fluid fluid = iblockdata.getFluid(); -- \ No newline at end of file