diff options
author | EvilSeph <evilseph@gmail.com> | 2011-12-12 12:50:10 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-12-12 12:50:10 -0500 |
commit | bd181fa04e12a015e0f2388bc95fa16fc4c3f7cb (patch) | |
tree | ed3a0352a9268e61f4dd5d8acad181d53bda964b /src | |
parent | b653ce3c1c1e3e2da137fc1ec6c3a4983c18f88f (diff) | |
download | craftbukkit-bd181fa04e12a015e0f2388bc95fa16fc4c3f7cb.tar craftbukkit-bd181fa04e12a015e0f2388bc95fa16fc4c3f7cb.tar.gz craftbukkit-bd181fa04e12a015e0f2388bc95fa16fc4c3f7cb.tar.lz craftbukkit-bd181fa04e12a015e0f2388bc95fa16fc4c3f7cb.tar.xz craftbukkit-bd181fa04e12a015e0f2388bc95fa16fc4c3f7cb.zip |
The dead are not meant to walk. Fixes BUKKIT-95. Thanks Evenprime!
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityLiving.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java index f4e2414d..e3aabd29 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! |