From 6975daaeafa9273294bd73835bde11eb0919db85 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 18 Apr 2021 21:06:19 +0100 Subject: [PATCH] Fixed potential issues in boss ticking --- .../main/java/com/willfp/ecobosses/bosses/LivingEcoBoss.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecobosses/bosses/LivingEcoBoss.java b/eco-core/core-plugin/src/main/java/com/willfp/ecobosses/bosses/LivingEcoBoss.java index 0d51a30..a7c51b9 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecobosses/bosses/LivingEcoBoss.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecobosses/bosses/LivingEcoBoss.java @@ -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); }