From 20a0b0a9be2e2283750c0ba9e10aba326f2ae63e Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Fri, 25 Nov 2011 00:32:44 +0000 Subject: [PATCH] Changed Entity.isDead to be aware of health for living entities --- src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 16cb35b36e..df90513cce 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -198,7 +198,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { } public boolean isDead() { - return entity.dead; + return !entity.aj(); } public Entity getHandle() {