diff options
author | mbax <matt@phozop.net> | 2013-07-02 21:38:01 -0400 |
---|---|---|
committer | mbax <matt@phozop.net> | 2013-07-02 21:38:01 -0400 |
commit | d213f7588fb6ee6c1f1377a50ac0681280df12a2 (patch) | |
tree | 3ee00cda31ea796092f20a1884c2692c9fe98043 /src | |
parent | 774cf2a2ca0c705a37dac2cf6f9ad7ae40875b0c (diff) | |
download | craftbukkit-d213f7588fb6ee6c1f1377a50ac0681280df12a2.tar craftbukkit-d213f7588fb6ee6c1f1377a50ac0681280df12a2.tar.gz craftbukkit-d213f7588fb6ee6c1f1377a50ac0681280df12a2.tar.lz craftbukkit-d213f7588fb6ee6c1f1377a50ac0681280df12a2.tar.xz craftbukkit-d213f7588fb6ee6c1f1377a50ac0681280df12a2.zip |
Update client on cancelled entity naming. Fixes BUKKIT-4396
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/PlayerConnection.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java index f201933d..217c5210 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java @@ -1110,6 +1110,10 @@ public class PlayerConnection extends Connection { // Refresh the current leash state this.sendPacket(new Packet39AttachEntity(1, entity, ((EntityInsentient) entity).bE())); } + if (itemInHand != null && itemInHand.id == Item.NAME_TAG.id && entity instanceof EntityInsentient) { + // Refresh the current entity metadata + this.sendPacket(new Packet40EntityMetadata(entity.id, entity.datawatcher, true)); + } return; } // CraftBukkit end |