summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityWolf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityWolf.patch')
-rw-r--r--nms-patches/EntityWolf.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/EntityWolf.patch b/nms-patches/EntityWolf.patch
index 69378f11..68e13f3c 100644
--- a/nms-patches/EntityWolf.patch
+++ b/nms-patches/EntityWolf.patch
@@ -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);