mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-23 08:59:31 +00:00
Fixed potential issues in boss ticking
This commit is contained in:
@@ -135,7 +135,7 @@ public class LivingEcoBoss extends PluginDependent {
|
|||||||
for (Effect effect : effects) {
|
for (Effect effect : effects) {
|
||||||
effect.tick(boss, entity, tick);
|
effect.tick(boss, entity, tick);
|
||||||
}
|
}
|
||||||
if (entity.isDead() || Bukkit.getEntity(entity.getUniqueId()) == null) {
|
if (entity.isDead() || Bukkit.getEntity(entity.getUniqueId()) == null || boss.getLivingBoss(entity) == null) {
|
||||||
for (BossTicker ticker : tickers) {
|
for (BossTicker ticker : tickers) {
|
||||||
ticker.onDeath(boss, entity, tick);
|
ticker.onDeath(boss, entity, tick);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user