Merge branch 'development'
This commit is contained in:
commit
a245a2637b
|
@ -4,7 +4,7 @@ stages:
|
|||
variables:
|
||||
name: "EpicBosses"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "1.2.3"
|
||||
version: "1.2.4"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
|
|
@ -58,11 +58,11 @@ public class BossLocationManager implements IReloadable {
|
|||
}
|
||||
}
|
||||
|
||||
if (WorldGuardHook.isEnabled()) {
|
||||
if (WorldGuardHook.getBooleanFlag(location, "boss-blocked-region")) {
|
||||
ServerUtils.get().logDebug("Unable to spawn boss due to worldguard region having the 'boss-blocked-region' flag");
|
||||
return false;
|
||||
}
|
||||
|
||||
Boolean flag;
|
||||
if ((flag = WorldGuardHook.getBooleanFlag(location, "boss-blocked-region")) != null && flag) {
|
||||
ServerUtils.get().logDebug("Unable to spawn boss due to worldguard region having the 'boss-blocked-region' flag");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.bossHookManager.isFactionsEnabled() && this.bossHookManager.getFactionHelper() != null) {
|
||||
|
|
|
@ -20,7 +20,9 @@ public class HealthMechanic implements IBossMechanic {
|
|||
public boolean applyMechanic(BossEntity bossEntity, ActiveBossHolder activeBossHolder) {
|
||||
if (activeBossHolder.getLivingEntityMap().getOrDefault(1, null) == null) return false;
|
||||
|
||||
double maxHealthSetting = (double) SpigotYmlReader.get().getObject("settings.attribute.maxHealth.max");
|
||||
Object o = SpigotYmlReader.get().getObject("settings.attribute.maxHealth.max");
|
||||
|
||||
double maxHealthSetting = o instanceof Double ? (double) o : (double) (int) o;
|
||||
|
||||
for (EntityStatsElement entityStatsElement : bossEntity.getEntityStats()) {
|
||||
MainStatsElement mainStatsElement = entityStatsElement.getMainStats();
|
||||
|
|
Loading…
Reference in New Issue