From bd181fa04e12a015e0f2388bc95fa16fc4c3f7cb Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Mon, 12 Dec 2011 12:50:10 -0500 Subject: [PATCH] The dead are not meant to walk. Fixes BUKKIT-95. Thanks Evenprime! --- src/main/java/net/minecraft/server/EntityLiving.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java index f4e2414d6d..e3aabd297f 100644 --- a/src/main/java/net/minecraft/server/EntityLiving.java +++ b/src/main/java/net/minecraft/server/EntityLiving.java @@ -225,7 +225,7 @@ public abstract class EntityLiving extends Entity { protected void ag() { ++this.deathTicks; - if (this.deathTicks == 20) { + if (this.deathTicks >= 20 && !this.dead) { // CraftBukkit - (this.deathTicks == 20) -> (this.deathTicks >= 20 && !this.dead). int i; // CraftBukkit start - update getExpReward() above if the removed if() changes!