aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohnny Cao <[email protected]>2019-03-24 10:00:42 -0700
committerDaniel Ennis <[email protected]>2019-03-24 13:00:42 -0400
commit0f82626d760eb359d117d1e430b11c12549a2f66 (patch)
treea9ff3a1d9a43e3c2dfca79b1d1729f2e2b76d6f9
parent76d2a4cb8f7fd2705b40502775d2fb587407483d (diff)
downloadPaper-0f82626d760eb359d117d1e430b11c12549a2f66.tar.gz
Paper-0f82626d760eb359d117d1e430b11c12549a2f66.zip
Fixes issues with player interaction preventing metadata from being updated for other players (#1896)
-rw-r--r--Spigot-Server-Patches/0425-Fixes-issues-with-player-interaction-preventing-meta.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0425-Fixes-issues-with-player-interaction-preventing-meta.patch b/Spigot-Server-Patches/0425-Fixes-issues-with-player-interaction-preventing-meta.patch
new file mode 100644
index 0000000000..0be28daa9c
--- /dev/null
+++ b/Spigot-Server-Patches/0425-Fixes-issues-with-player-interaction-preventing-meta.patch
@@ -0,0 +1,26 @@
+From ab124ff3d442f70cef7665086a5f34ad13c42105 Mon Sep 17 00:00:00 2001
+From: AgentTroll <[email protected]>
+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
+@@ -1974,7 +1974,10 @@ 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()) {
+--
+2.21.0
+