From 474234b6be68b8d173785ce1fd5e9683ccef5d90 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 25 Nov 2011 00:32:44 +0000 Subject: [PATCH] Changed Entity.isDead to be aware of health for living entities By: Nathan Adams --- .../main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 16cb35b36e..df90513cce 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/paper-server/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() {