diff options
author | Steve Anton <anxuiz.nx@gmail.com> | 2012-07-13 21:14:56 -0700 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-07-14 17:57:31 -0500 |
commit | 8b9aad8c2b4057ab33a7bff2b8711d0d48c13568 (patch) | |
tree | a15b831c8c8ed4455854f1008f92fe24c055b9eb /src/main/java/net/minecraft/server/EntityEnderDragon.java | |
parent | 79189c1c13eb170226c1e73d249effe3e0e29041 (diff) | |
download | craftbukkit-8b9aad8c2b4057ab33a7bff2b8711d0d48c13568.tar craftbukkit-8b9aad8c2b4057ab33a7bff2b8711d0d48c13568.tar.gz craftbukkit-8b9aad8c2b4057ab33a7bff2b8711d0d48c13568.tar.lz craftbukkit-8b9aad8c2b4057ab33a7bff2b8711d0d48c13568.tar.xz craftbukkit-8b9aad8c2b4057ab33a7bff2b8711d0d48c13568.zip |
Add remaining missing setLastDamageCause's
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityEnderDragon.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityEnderDragon.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityEnderDragon.java b/src/main/java/net/minecraft/server/EntityEnderDragon.java index 68a44808..9c7c14b2 100644 --- a/src/main/java/net/minecraft/server/EntityEnderDragon.java +++ b/src/main/java/net/minecraft/server/EntityEnderDragon.java @@ -402,6 +402,7 @@ public class EntityEnderDragon extends EntityComplex { Bukkit.getPluginManager().callEvent(damageEvent); if (!damageEvent.isCancelled()) { + entity.getBukkitEntity().setLastDamageCause(damageEvent); entity.damageEntity(DamageSource.mobAttack(this), damageEvent.getDamage()); } } else { |