From e31c1e33d961d089caa95a64ea4df5948a192646 Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 5 Apr 2013 16:15:24 -0400 Subject: [PATCH] Don't handle removing the name if the entity is dead. --- src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java index 8cad04087..63c619002 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java @@ -313,7 +313,9 @@ public final class CombatUtils { target.setMetadata(mcMMO.customVisibleKey, new FixedMetadataValue(mcMMO.p, oldNameVisible)); } - new MobHealthDisplayUpdaterTask(target).runTaskLater(mcMMO.p, displayTime * 20); // Clear health display after 3 seconds + if (target.isValid()) { + new MobHealthDisplayUpdaterTask(target).runTaskLater(mcMMO.p, displayTime * 20); // Clear health display after 3 seconds + } } } }