From e264c365ac2d5e98b4a8238f4a683ecae74686a6 Mon Sep 17 00:00:00 2001 From: TheGreatKetchup Date: Tue, 6 Aug 2019 23:12:15 -0400 Subject: [PATCH] MC-156852 fix (#2396) --- .../0407-Fixed-MC-156852.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Spigot-Server-Patches/0407-Fixed-MC-156852.patch diff --git a/Spigot-Server-Patches/0407-Fixed-MC-156852.patch b/Spigot-Server-Patches/0407-Fixed-MC-156852.patch new file mode 100644 index 0000000000..8542282b76 --- /dev/null +++ b/Spigot-Server-Patches/0407-Fixed-MC-156852.patch @@ -0,0 +1,28 @@ +From 73127de4ba34855c821c62e59dd18f47b89bcd04 Mon Sep 17 00:00:00 2001 +From: TheGreatKetchup +Date: Thu, 1 Aug 2019 21:24:30 -0400 +Subject: [PATCH] Fixed MC-156852 + +This corrects the 1.14.4 of "phantom" blocks that the client thinks are +deleted but the server does not. + +It uses the same solution that fixed the glitch that caused the same +issue in 1.8-1.12. + +Originally solved by Gnembon on MC-5694 at bugs.mojang.com + +diff --git a/src/main/java/net/minecraft/server/PlayerInteractManager.java b/src/main/java/net/minecraft/server/PlayerInteractManager.java +index e5e9de542..3e338ad45 100644 +--- a/src/main/java/net/minecraft/server/PlayerInteractManager.java ++++ b/src/main/java/net/minecraft/server/PlayerInteractManager.java +@@ -218,6 +218,7 @@ public class PlayerInteractManager { + int j = (int) (f * 10.0F); + + this.world.a(this.player.getId(), blockposition, j); ++ this.player.playerConnection.sendPacket(new PacketPlayOutBlockChange(this.world, blockposition)); // Paper - fixes MC-156852 + this.player.playerConnection.sendPacket(new PacketPlayOutBlockBreak(blockposition, this.world.getType(blockposition), packetplayinblockdig_enumplayerdigtype, true)); + this.l = j; + } +-- +2.17.1 +