mirror of
https://github.com/songoda/EpicBosses.git
synced 2025-03-12 14:39:05 +01:00
Add health mechanic fix to minions.
This commit is contained in:
parent
183c262051
commit
84edeaba77
@ -21,7 +21,8 @@ public class HealthMechanic implements IMinionMechanic {
|
||||
if (activeMinionHolder.getLivingEntityMap() == null || activeMinionHolder.getLivingEntityMap().isEmpty())
|
||||
return false;
|
||||
|
||||
double maxHealthSetting = (double) SpigotYmlReader.get().getObject("settings.attribute.maxHealth.max");
|
||||
double maxHealthSetting = Double.valueOf( SpigotYmlReader
|
||||
.get().getObject("settings.attribute.maxHealth.max").toString());
|
||||
|
||||
for (EntityStatsElement entityStatsElement : minionEntity.getEntityStats()) {
|
||||
MainStatsElement mainStatsElement = entityStatsElement.getMainStats();
|
||||
|
Loading…
Reference in New Issue
Block a user