Implement Leash API. Adds BUKKIT-4459, BUKKIT-4583

This commit is contained in:
T00thpick1 authored and Wesley Wolfe committed 2013-08-03 15:03:41 -05:00
1 parent f7ca953ff1
commit 54672a75f6
9 files changed
+156 -14

No files matched your search

@@ -264,6 +264,7 @@ public abstract class EntityCreature extends EntityInsentient {
if (this instanceof EntityTameableAnimal && ((EntityTameableAnimal) this).isSitting()) {
if (f > 10.0F) {
this.world.getServer().getPluginManager().callEvent(new org.bukkit.event.entity.EntityUnleashEvent(this.getBukkitEntity(), org.bukkit.event.entity.EntityUnleashEvent.UnleashReason.DISTANCE)); // CraftBukkit
this.a(true, true);
}