9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-23 00:49:36 +00:00

Fixed potential issues in boss ticking

This commit is contained in:
Auxilor
2021-04-18 21:06:19 +01:00
parent 663104bda0
commit 6975daaeaf

View File

@@ -135,7 +135,7 @@ public class LivingEcoBoss extends PluginDependent {
for (Effect effect : effects) {
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) {
ticker.onDeath(boss, entity, tick);
}