mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 03:25:15 +01:00
Update client on cancelled leash. Fixes BUKKIT-4395
This commit is contained in:
parent
a15096ae1c
commit
774cf2a2ca
@ -1106,6 +1106,10 @@ public class PlayerConnection extends Connection {
|
|||||||
this.server.getPluginManager().callEvent(event);
|
this.server.getPluginManager().callEvent(event);
|
||||||
|
|
||||||
if (event.isCancelled()) {
|
if (event.isCancelled()) {
|
||||||
|
if (itemInHand != null && itemInHand.id == Item.LEASH.id && entity instanceof EntityInsentient) {
|
||||||
|
// Refresh the current leash state
|
||||||
|
this.sendPacket(new Packet39AttachEntity(1, entity, ((EntityInsentient) entity).bE()));
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
Loading…
Reference in New Issue
Block a user