Don't cache mob infomation in the updater task

This commit is contained in:
Shane Freeder
2019-12-31 12:16:12 +00:00
parent 601297799f
commit 8fd1af4cbf
3 changed files with 13 additions and 10 deletions

View File

@ -60,6 +60,11 @@ public final class MobHealthbarUtils {
return;
}
// Don't mangle invalid entities, they're not going to be rendered anyways
if (!target.isValid()) {
return;
}
boolean oldNameVisible = target.isCustomNameVisible();
String newName = createHealthDisplay(Config.getInstance().getMobHealthbarDefault(), target, damage);