@@ -57,7 +57,7 @@
|
||||
@@ -258,7 +280,7 @@
|
||||
this.goalSit.setSitting(!this.isSitting());
|
||||
this.bg = false;
|
||||
this.navigation.r();
|
||||
this.navigation.q();
|
||||
- this.setGoalTarget((EntityLiving) null);
|
||||
+ this.setGoalTarget((EntityLiving) null, TargetReason.FORGOT_TARGET, true); // CraftBukkit - reason
|
||||
}
|
||||
@@ -71,7 +71,7 @@
|
||||
+ // CraftBukkit - added event call and isCancelled check.
|
||||
+ if (this.random.nextInt(3) == 0 && !CraftEventFactory.callEntityTameEvent(this, entityhuman).isCancelled()) {
|
||||
this.c(entityhuman);
|
||||
this.navigation.r();
|
||||
this.navigation.q();
|
||||
this.setGoalTarget((EntityLiving) null);
|
||||
this.goalSit.setSitting(true);
|
||||
- this.setHealth(20.0F);
|
||||
|
||||
Reference in New Issue
Block a user