@@ -1,7 +1,8 @@
|
||||
--- a/net/minecraft/server/EntityCreature.java
|
||||
+++ b/net/minecraft/server/EntityCreature.java
|
||||
@@ -1,5 +1,9 @@
|
||||
package net.minecraft.server;
|
||||
--- a/net/minecraft/world/entity/EntityCreature.java
|
||||
+++ b/net/minecraft/world/entity/EntityCreature.java
|
||||
@@ -7,6 +7,10 @@
|
||||
import net.minecraft.world.level.World;
|
||||
import net.minecraft.world.phys.Vec3D;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import org.bukkit.event.entity.EntityUnleashEvent;
|
||||
@@ -10,7 +11,7 @@
|
||||
public abstract class EntityCreature extends EntityInsentient {
|
||||
|
||||
protected EntityCreature(EntityTypes<? extends EntityCreature> entitytypes, World world) {
|
||||
@@ -34,6 +38,7 @@
|
||||
@@ -41,6 +45,7 @@
|
||||
|
||||
if (this instanceof EntityTameableAnimal && ((EntityTameableAnimal) this).isSitting()) {
|
||||
if (f > 10.0F) {
|
||||
@@ -18,7 +19,7 @@
|
||||
this.unleash(true, true);
|
||||
}
|
||||
|
||||
@@ -42,6 +47,7 @@
|
||||
@@ -49,6 +54,7 @@
|
||||
|
||||
this.x(f);
|
||||
if (f > 10.0F) {
|
||||
|
||||
Reference in New Issue
Block a user