2019-03-24 22:48:22 +01:00
|
|
|
From b75921430d01070026e081910ccfb2785c4a4b24 Mon Sep 17 00:00:00 2001
|
2019-03-24 18:00:42 +01:00
|
|
|
From: AgentTroll <woodyc40@gmail.com>
|
|
|
|
Date: Fri, 22 Mar 2019 22:24:03 -0700
|
2019-03-24 22:48:22 +01:00
|
|
|
Subject: [PATCH] Update entity Metadata for all tracked players
|
2019-03-24 18:00:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2019-03-24 22:48:22 +01:00
|
|
|
index c4edb5b85..65e76491b 100644
|
2019-03-24 18:00:42 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2019-03-24 22:48:22 +01:00
|
|
|
@@ -1974,7 +1974,7 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable {
|
2019-03-24 18:00:42 +01:00
|
|
|
|
|
|
|
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));
|
2019-03-24 22:48:22 +01:00
|
|
|
+ entity.tracker.broadcast(new PacketPlayOutEntityMetadata(entity.getId(), entity.datawatcher, true)); // Paper - update entity for all players
|
2019-03-24 18:00:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (event.isCancelled()) {
|
|
|
|
--
|
|
|
|
2.21.0
|
|
|
|
|