1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-03-31 08:46:26 +02:00

Don't handle removing the name if the entity is dead.

This commit is contained in:
GJ 2013-04-05 16:15:24 -04:00
parent 25dfa6d34d
commit e31c1e33d9

@ -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
}
}
}
}