3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

Update client on cancelled leash. Fixes BUKKIT-4395

Dieser Commit ist enthalten in:
mbax 2013-07-02 19:34:08 -04:00
Ursprung a15096ae1c
Commit 774cf2a2ca

Datei anzeigen

@ -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