2019-12-13 20:41:01 +00:00
|
|
|
From 603fa201cf4d51981a9fe52bf46c79bca9c93118 Mon Sep 17 00:00:00 2001
|
2019-08-07 03:12:15 +00:00
|
|
|
From: TheGreatKetchup <TheGreatKetchup@users.noreply.github.com>
|
|
|
|
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
|
2019-12-12 16:20:43 +00:00
|
|
|
index 8720dd120..cc77dd8e5 100644
|
2019-08-07 03:12:15 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerInteractManager.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerInteractManager.java
|
2019-12-12 16:20:43 +00:00
|
|
|
@@ -223,7 +223,7 @@ public class PlayerInteractManager {
|
2019-08-07 03:12:15 +00:00
|
|
|
int j = (int) (f * 10.0F);
|
|
|
|
|
|
|
|
this.world.a(this.player.getId(), blockposition, j);
|
2019-12-12 16:20:43 +00:00
|
|
|
- this.player.playerConnection.sendPacket(new PacketPlayOutBlockBreak(blockposition, this.world.getType(blockposition), packetplayinblockdig_enumplayerdigtype, true, "actual start of destroying"));
|
2019-08-07 03:12:15 +00:00
|
|
|
+ this.player.playerConnection.sendPacket(new PacketPlayOutBlockChange(this.world, blockposition)); // Paper - fixes MC-156852
|
|
|
|
this.l = j;
|
|
|
|
}
|
2019-12-12 16:20:43 +00:00
|
|
|
} else if (packetplayinblockdig_enumplayerdigtype == PacketPlayInBlockDig.EnumPlayerDigType.STOP_DESTROY_BLOCK) {
|
2019-08-07 03:12:15 +00:00
|
|
|
--
|
2019-12-12 16:20:43 +00:00
|
|
|
2.24.1
|
2019-08-07 03:12:15 +00:00
|
|
|
|