mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Update client on cancelled entity naming. Fixes BUKKIT-4396
This commit is contained in:
parent
774cf2a2ca
commit
d213f7588f
1 changed files with 4 additions and 0 deletions
|
@ -1110,6 +1110,10 @@ public class PlayerConnection extends Connection {
|
||||||
// Refresh the current leash state
|
// Refresh the current leash state
|
||||||
this.sendPacket(new Packet39AttachEntity(1, entity, ((EntityInsentient) entity).bE()));
|
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;
|
return;
|
||||||
}
|
}
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
|
Loading…
Add table
Reference in a new issue