aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAgentTroll <[email protected]>2019-03-24 17:45:55 -0400
committerAikar <[email protected]>2019-03-24 17:46:02 -0400
commitf81358ab8c51ac29873b63c7a2ea78098464283d (patch)
treea69774d8eb275431f36dc36976288ddda4b5f6a6
parent14eac29ac6bc2d8ea9bdc58b39b35e116c273e24 (diff)
downloadPaper-f81358ab8c51ac29873b63c7a2ea78098464283d.tar.gz
Paper-f81358ab8c51ac29873b63c7a2ea78098464283d.zip
Update entity Metadata for all tracked players
-rw-r--r--Spigot-Server-Patches/0379-Update-entity-Metadata-for-all-tracked-players.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0379-Update-entity-Metadata-for-all-tracked-players.patch b/Spigot-Server-Patches/0379-Update-entity-Metadata-for-all-tracked-players.patch
new file mode 100644
index 0000000000..2099729275
--- /dev/null
+++ b/Spigot-Server-Patches/0379-Update-entity-Metadata-for-all-tracked-players.patch
@@ -0,0 +1,22 @@
+From 2a1cb415c509d8a702897d35f3f67ca359dd5412 Mon Sep 17 00:00:00 2001
+From: AgentTroll <[email protected]>
+Date: Sun, 24 Mar 2019 17:44:01 -0400
+Subject: [PATCH] Update entity Metadata for all tracked players
+
+
+diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
+index e837a553e..8c20bcd14 100644
+--- a/src/main/java/net/minecraft/server/PlayerConnection.java
++++ b/src/main/java/net/minecraft/server/PlayerConnection.java
+@@ -1674,7 +1674,7 @@ 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));
++ entity.tracker.broadcast(new PacketPlayOutEntityMetadata(entity.getId(), entity.datawatcher, true)); // Paper - update entity for all players
+ }
+
+ if (event.isCancelled()) {
+--
+2.21.0
+