@@ -1,7 +1,7 @@
|
||||
--- a/net/minecraft/server/EntityWolf.java
|
||||
+++ b/net/minecraft/server/EntityWolf.java
|
||||
@@ -4,6 +4,11 @@
|
||||
import java.util.function.Predicate;
|
||||
@@ -3,6 +3,11 @@
|
||||
import java.util.UUID;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
+// CraftBukkit start
|
||||
@@ -12,7 +12,7 @@
|
||||
public class EntityWolf extends EntityTameableAnimal {
|
||||
|
||||
private static final DataWatcherObject<Float> DATA_HEALTH = DataWatcher.a(EntityWolf.class, DataWatcherRegistry.c);
|
||||
@@ -57,6 +62,22 @@
|
||||
@@ -56,6 +61,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) {
|
||||
@@ -191,7 +212,8 @@
|
||||
@@ -190,7 +211,8 @@
|
||||
Entity entity = damagesource.getEntity();
|
||||
|
||||
if (this.goalSit != null) {
|
||||
@@ -45,7 +45,7 @@
|
||||
}
|
||||
|
||||
if (entity != null && !(entity instanceof EntityHuman) && !(entity instanceof EntityArrow)) {
|
||||
@@ -237,7 +259,7 @@
|
||||
@@ -236,7 +258,7 @@
|
||||
itemstack.subtract(1);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
return true;
|
||||
}
|
||||
} else if (item instanceof ItemDye) {
|
||||
@@ -258,7 +280,7 @@
|
||||
@@ -257,7 +279,7 @@
|
||||
this.goalSit.setSitting(!this.isSitting());
|
||||
this.bg = false;
|
||||
this.navigation.q();
|
||||
@@ -63,7 +63,7 @@
|
||||
}
|
||||
} else if (item == Items.BONE && !this.isAngry()) {
|
||||
if (!entityhuman.abilities.canInstantlyBuild) {
|
||||
@@ -266,12 +288,13 @@
|
||||
@@ -265,12 +287,13 @@
|
||||
}
|
||||
|
||||
if (!this.world.isClientSide) {
|
||||
|
||||
Reference in New Issue
Block a user