diff options
Diffstat (limited to 'nms-patches/EntityWolf.patch')
-rw-r--r-- | nms-patches/EntityWolf.patch | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nms-patches/EntityWolf.patch b/nms-patches/EntityWolf.patch index da6feb89..85f3026f 100644 --- a/nms-patches/EntityWolf.patch +++ b/nms-patches/EntityWolf.patch @@ -12,7 +12,7 @@ public class EntityWolf extends EntityTameableAnimal { private static final DataWatcherObject<Float> DATA_HEALTH = DataWatcher.a(EntityWolf.class, DataWatcherRegistry.c); -@@ -61,6 +66,22 @@ +@@ -62,6 +67,22 @@ this.getAttributeMap().b(GenericAttributes.ATTACK_DAMAGE).setValue(2.0D); } @@ -35,7 +35,7 @@ public void setGoalTarget(@Nullable EntityLiving entityliving) { super.setGoalTarget(entityliving); if (entityliving == null) { -@@ -199,9 +220,10 @@ +@@ -200,9 +221,10 @@ Entity entity = damagesource.getEntity(); if (this.goalSit != null) { @@ -48,8 +48,8 @@ if (entity != null && !(entity instanceof EntityHuman) && !(entity instanceof EntityArrow)) { f = (f + 1.0F) / 2.0F; } -@@ -242,7 +264,7 @@ - --itemstack.count; +@@ -245,7 +267,7 @@ + itemstack.subtract(1); } - this.heal((float) itemfood.getNutrition(itemstack)); @@ -57,16 +57,16 @@ return true; } } else if (itemstack.getItem() == Items.DYE) { -@@ -263,7 +285,7 @@ +@@ -266,7 +288,7 @@ this.goalSit.setSitting(!this.isSitting()); - this.be = false; + this.bd = false; this.navigation.o(); - this.setGoalTarget((EntityLiving) null); + this.setGoalTarget((EntityLiving) null, TargetReason.FORGOT_TARGET, true); // CraftBukkit - reason } - } else if (itemstack != null && itemstack.getItem() == Items.BONE && !this.isAngry()) { + } else if (itemstack.getItem() == Items.BONE && !this.isAngry()) { if (!entityhuman.abilities.canInstantlyBuild) { -@@ -271,12 +293,14 @@ +@@ -274,12 +296,14 @@ } if (!this.world.isClientSide) { |