From 706761b53168a569ca20a742a6580511520cc014 Mon Sep 17 00:00:00 2001 From: Mariell Date: Tue, 23 Jun 2020 01:00:00 +0200 Subject: [PATCH] Fix piston dupe patch creating ghost blocks (#3603) The 2 flag (send change to clients) must always be set. If it is only set when the `map.replace` call before it does something, as was suggested on Discord, the issue will not change whatsoever. Fixes #3593 --- .../Fix-piston-physics-inconsistency-MC-188840.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Fix-piston-physics-inconsistency-MC-188840.patch b/Spigot-Server-Patches/Fix-piston-physics-inconsistency-MC-188840.patch index fc818fdb9b..4e5bd971a2 100644 --- a/Spigot-Server-Patches/Fix-piston-physics-inconsistency-MC-188840.patch +++ b/Spigot-Server-Patches/Fix-piston-physics-inconsistency-MC-188840.patch @@ -71,7 +71,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + } + world.setTileEntity(blockposition3, BlockPistonMoving.a(allowDesync ? list1.get(k) : iblockdata1, enumdirection, flag, false)); + if (!allowDesync) { -+ world.setTypeAndData(oldPos, Blocks.AIR.getBlockData(), 4 | 16 | 1024); // set air to prevent later physics updates from seeing this block ++ world.setTypeAndData(oldPos, Blocks.AIR.getBlockData(), 2 | 4 | 16 | 1024); // set air to prevent later physics updates from seeing this block + } + // Paper end - fix a variety of piston desync dupes --j;