Update CraftBukkit to Minecraft 1.4.7
This commit is contained in:
@@ -35,8 +35,8 @@ public class EntityWolf extends EntityTameableAnimal {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void b(EntityLiving entityliving) {
|
||||
super.b(entityliving);
|
||||
public void setGoalTarget(EntityLiving entityliving) {
|
||||
super.setGoalTarget(entityliving);
|
||||
if (entityliving instanceof EntityHuman) {
|
||||
this.setAngry(true);
|
||||
}
|
||||
@@ -75,7 +75,7 @@ public class EntityWolf extends EntityTameableAnimal {
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean bj() {
|
||||
protected boolean isTypeNotPersistent() {
|
||||
// CraftBukkit - added && !this.isTamed()
|
||||
return this.isAngry() && !this.isTamed();
|
||||
}
|
||||
@@ -171,7 +171,7 @@ public class EntityWolf extends EntityTameableAnimal {
|
||||
} else {
|
||||
Entity entity = damagesource.getEntity();
|
||||
|
||||
this.d.a(false);
|
||||
this.d.setSitting(false);
|
||||
if (entity != null && !(entity instanceof EntityHuman) && !(entity instanceof EntityArrow)) {
|
||||
i = (i + 1) / 2;
|
||||
}
|
||||
@@ -221,7 +221,7 @@ public class EntityWolf extends EntityTameableAnimal {
|
||||
}
|
||||
|
||||
if (entityhuman.name.equalsIgnoreCase(this.getOwnerName()) && !this.world.isStatic && !this.c(itemstack)) {
|
||||
this.d.a(!this.isSitting());
|
||||
this.d.setSitting(!this.isSitting());
|
||||
this.bF = false;
|
||||
this.setPathEntity((PathEntity) null);
|
||||
}
|
||||
@@ -240,8 +240,8 @@ public class EntityWolf extends EntityTameableAnimal {
|
||||
boolean updateMaxHealth = this.getMaxHealth() == this.maxHealth; // CraftBukkit
|
||||
this.setTamed(true);
|
||||
this.setPathEntity((PathEntity) null);
|
||||
this.b((EntityLiving) null);
|
||||
this.d.a(true);
|
||||
this.setGoalTarget((EntityLiving) null);
|
||||
this.d.setSitting(true);
|
||||
// CraftBukkit start
|
||||
if (updateMaxHealth) {
|
||||
this.maxHealth = this.getMaxHealth();
|
||||
|
||||
Reference in New Issue
Block a user