diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-25 00:32:44 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-25 00:32:44 +0000 |
commit | 20a0b0a9be2e2283750c0ba9e10aba326f2ae63e (patch) | |
tree | c28d02cb57221665b0e5f169f5d857ae1e02842e /src/main/java/org | |
parent | 620f1014871edaefaa7e11b409429328aca149c3 (diff) | |
download | craftbukkit-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.java | 2 |
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() { |