summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityWolf.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityWolf.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityWolf.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/EntityWolf.java b/src/main/java/net/minecraft/server/EntityWolf.java
index 1c4d6c7b..a7ff3d04 100644
--- a/src/main/java/net/minecraft/server/EntityWolf.java
+++ b/src/main/java/net/minecraft/server/EntityWolf.java
@@ -237,7 +237,7 @@ public class EntityWolf extends EntityAnimal {
}
public boolean damageEntity(DamageSource damagesource, int i) {
- Entity entity = damagesource.a();
+ Entity entity = damagesource.getEntity();
this.setSitting(false);
if (entity != null && !(entity instanceof EntityHuman) && !(entity instanceof EntityArrow)) {
@@ -345,7 +345,7 @@ public class EntityWolf extends EntityAnimal {
}
// CraftBukkit end
- entity.damageEntity(DamageSource.a((EntityLiving) this), b0);
+ entity.damageEntity(DamageSource.mobAttack(this), b0);
}
}