summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityWolf.java
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-09-15 17:36:27 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-09-15 17:39:17 +0100
commit2b5a61f03d135a3f4e82bc6f4b2b8ea47abd5dcb (patch)
tree412002b4ee8104908e0d71a996500ae188860ad4 /src/main/java/net/minecraft/server/EntityWolf.java
parent3c5632de31b923c8eaefae130f042a4d24566881 (diff)
downloadcraftbukkit-2b5a61f03d135a3f4e82bc6f4b2b8ea47abd5dcb.tar
craftbukkit-2b5a61f03d135a3f4e82bc6f4b2b8ea47abd5dcb.tar.gz
craftbukkit-2b5a61f03d135a3f4e82bc6f4b2b8ea47abd5dcb.tar.lz
craftbukkit-2b5a61f03d135a3f4e82bc6f4b2b8ea47abd5dcb.tar.xz
craftbukkit-2b5a61f03d135a3f4e82bc6f4b2b8ea47abd5dcb.zip
Rename revision 2
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);
}
}