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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user