Validate here instead.

This commit is contained in:
GJ 2013-04-08 00:26:12 -04:00
parent b82c3f41d3
commit dd8984314f

View File

@ -11,9 +11,8 @@ public class MobHealthDisplayUpdaterTask extends BukkitRunnable {
private boolean oldNameVisible;
public MobHealthDisplayUpdaterTask(LivingEntity target) {
this.target = target;
if (target.isValid()) {
this.target = target;
this.oldName = target.getMetadata(mcMMO.customNameKey).get(0).asString();
this.oldNameVisible = target.getMetadata(mcMMO.customVisibleKey).get(0).asBoolean();
}