From ace3146df21070de5885430059fb0756b04a3450 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Mon, 11 Jan 2021 16:45:37 +0000 Subject: [PATCH] Fix debug stick update suppression (Fixes #5038) --- ...Do-not-perform-neighbour-updates-when-using-debug-st.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spigot-Server-Patches/0620-Do-not-perform-neighbour-updates-when-using-debug-st.patch b/Spigot-Server-Patches/0620-Do-not-perform-neighbour-updates-when-using-debug-st.patch index 1cda974c6..f7d6b5399 100644 --- a/Spigot-Server-Patches/0620-Do-not-perform-neighbour-updates-when-using-debug-st.patch +++ b/Spigot-Server-Patches/0620-Do-not-perform-neighbour-updates-when-using-debug-st.patch @@ -13,7 +13,7 @@ This patch also maintains the behavior of the BlockPlaceEvent, this behavior will NOT be guaranteed in the future, however. diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java -index 3adb29f004d2fee36f3ee9b21ee5417e84b64837..5a62ac72edc49cd032cd02fa8d007959517d063b 100644 +index 3adb29f004d2fee36f3ee9b21ee5417e84b64837..c84a062d38dcf8c46781b0e30bf3e0821e34dd58 100644 --- a/src/main/java/net/minecraft/server/ItemStack.java +++ b/src/main/java/net/minecraft/server/ItemStack.java @@ -211,6 +211,7 @@ public final class ItemStack { @@ -41,7 +41,7 @@ index 3adb29f004d2fee36f3ee9b21ee5417e84b64837..5a62ac72edc49cd032cd02fa8d007959 } - world.notifyAndUpdatePhysics(newblockposition, null, oldBlock, block, world.getType(newblockposition), updateFlag, 512); // send null chunk as chunk.k() returns false by this point -+ world.notifyAndUpdatePhysics(newblockposition, null, oldBlock, block, world.getType(newblockposition), updateFlag, 512 ^ (doPhysicsUpdate ? 0 : 16)); // send null chunk as chunk.k() returns false by this point // Paper ++ world.notifyAndUpdatePhysics(newblockposition, null, oldBlock, block, world.getType(newblockposition), updateFlag | (doPhysicsUpdate ? 0 : 16), 512); // send null chunk as chunk.k() returns false by this point // Paper } // Special case juke boxes as they update their tile entity. Copied from ItemRecord.