mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 18:45:29 +01:00
Fix typo
This commit is contained in:
parent
438a671b4d
commit
cae7c9abd9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user