9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-22 00:19:30 +00:00

More fixes

This commit is contained in:
Auxilor
2021-05-19 11:31:03 +01:00
parent fa8c5da31a
commit ab6e990f0b

View File

@@ -21,7 +21,9 @@ import org.bukkit.entity.Player;
import org.bukkit.persistence.PersistentDataType; import org.bukkit.persistence.PersistentDataType;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.HashSet; import java.util.HashSet;
import java.util.List;
import java.util.Set; import java.util.Set;
import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.atomic.AtomicLong;
@@ -39,12 +41,12 @@ public class LivingEcoBoss extends PluginDependent {
/** /**
* The boss tickers. * The boss tickers.
*/ */
private final Set<BossTicker> tickers; private final List<BossTicker> tickers;
/** /**
* The effects. * The effects.
*/ */
private final Set<Effect> effects; private final List<Effect> effects;
/** /**
* Create new living EcoBoss. * Create new living EcoBoss.
@@ -63,7 +65,7 @@ public class LivingEcoBoss extends PluginDependent {
this.onSpawn(); this.onSpawn();
// Tickers // Tickers
this.tickers = new HashSet<>(); this.tickers = new ArrayList<>();
this.tickers.add(new HealthPlaceholderTicker()); this.tickers.add(new HealthPlaceholderTicker());
this.tickers.add(new TargetTicker(boss.getTargetMode(), boss.getTargetDistance())); this.tickers.add(new TargetTicker(boss.getTargetMode(), boss.getTargetDistance()));
if (boss.isBossbarEnabled()) { if (boss.isBossbarEnabled()) {
@@ -82,7 +84,7 @@ public class LivingEcoBoss extends PluginDependent {
} }
// Effects // Effects
this.effects = new HashSet<>(); this.effects = new ArrayList<>();
this.effects.addAll(boss.createEffects()); this.effects.addAll(boss.createEffects());
AtomicLong currentTick = new AtomicLong(0); AtomicLong currentTick = new AtomicLong(0);