mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Implement Leash API. Adds BUKKIT-4459, BUKKIT-4583
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user