This commit is contained in:
fullwall 2023-08-12 21:09:46 +08:00
parent 438a671b4d
commit cae7c9abd9
1 changed files with 1 additions and 1 deletions

View File

@ -133,8 +133,8 @@ public class BossBarTrait extends Trait {
if (track != null && !track.isEmpty()) {
if (track.equalsIgnoreCase("health")) {
LivingEntity entity = (LivingEntity) npc.getEntity();
if (npc.getEntity() instanceof LivingEntity) {
LivingEntity entity = (LivingEntity) npc.getEntity();
double maxHealth = entity.getMaxHealth();
if (SUPPORT_ATTRIBUTES) {
try {