summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorNathan Adams <dinnerbone@dinnerbone.com>2011-11-25 00:32:44 +0000
committerNathan Adams <dinnerbone@dinnerbone.com>2011-11-25 00:32:44 +0000
commit20a0b0a9be2e2283750c0ba9e10aba326f2ae63e (patch)
treec28d02cb57221665b0e5f169f5d857ae1e02842e /src/main/java/org
parent620f1014871edaefaa7e11b409429328aca149c3 (diff)
downloadcraftbukkit-20a0b0a9be2e2283750c0ba9e10aba326f2ae63e.tar
craftbukkit-20a0b0a9be2e2283750c0ba9e10aba326f2ae63e.tar.gz
craftbukkit-20a0b0a9be2e2283750c0ba9e10aba326f2ae63e.tar.lz
craftbukkit-20a0b0a9be2e2283750c0ba9e10aba326f2ae63e.tar.xz
craftbukkit-20a0b0a9be2e2283750c0ba9e10aba326f2ae63e.zip
Changed Entity.isDead to be aware of health for living entities
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
index 16cb35b3..df90513c 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() {