From 7ac68eb0464565d3c12b23cfe3c933665f1276b9 Mon Sep 17 00:00:00 2001 From: Johnny Cao <5037004+AgentTroll@users.noreply.github.com> Date: Sun, 24 Mar 2019 10:00:42 -0700 Subject: [PATCH] Fixes issues with player interaction preventing metadata from being updated for other players (#1896) --- ...h-player-interaction-preventing-meta.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Spigot-Server-Patches/Fixes-issues-with-player-interaction-preventing-meta.patch diff --git a/Spigot-Server-Patches/Fixes-issues-with-player-interaction-preventing-meta.patch b/Spigot-Server-Patches/Fixes-issues-with-player-interaction-preventing-meta.patch new file mode 100644 index 0000000000..7a0f38dc64 --- /dev/null +++ b/Spigot-Server-Patches/Fixes-issues-with-player-interaction-preventing-meta.patch @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: AgentTroll +Date: Fri, 22 Mar 2019 22:24:03 -0700 +Subject: [PATCH] Fixes issues with player interaction preventing metadata from + being updated for other players + + +diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java +index c4edb5b85d..d2dd5d5be5 100644 +--- a/src/main/java/net/minecraft/server/PlayerConnection.java ++++ b/src/main/java/net/minecraft/server/PlayerConnection.java +@@ -0,0 +0,0 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable { + + if (event.isCancelled() || this.player.inventory.getItemInHand() == null || this.player.inventory.getItemInHand().getItem() != origItem) { + // Refresh the current entity metadata +- this.sendPacket(new PacketPlayOutEntityMetadata(entity.getId(), entity.datawatcher, true)); ++ // Paper start - update entity for all players ++ // this.sendPacket(new PacketPlayOutEntityMetadata(entity.getId(), entity.datawatcher, true)); ++ entity.tracker.track(worldserver.players); ++ // Paper end + } + + if (event.isCancelled()) { +-- \ No newline at end of file