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/EntityEnderPearl.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/EntityEnderPearl.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityEnderPearl.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityEnderPearl.java b/src/main/java/net/minecraft/server/EntityEnderPearl.java index 7be7bbda..4e66b050 100644 --- a/src/main/java/net/minecraft/server/EntityEnderPearl.java +++ b/src/main/java/net/minecraft/server/EntityEnderPearl.java @@ -67,6 +67,7 @@ public class EntityEnderPearl extends EntityProjectile { if (!damageEvent.isCancelled()) { org.bukkit.entity.Player bPlayer = Bukkit.getPlayerExact(((EntityPlayer) this.shooter).name); ((CraftPlayer) bPlayer).getHandle().invulnerableTicks = -1; // Remove spawning invulnerability. + bPlayer.setLastDamageCause(damageEvent); ((CraftPlayer) bPlayer).getHandle().damageEntity(DamageSource.FALL, damageEvent.getDamage()); // Damage the new player instead of the old } } |