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

Fixed potential NPE

This commit is contained in:
Auxilor
2021-05-20 11:40:08 +01:00
parent a31b0210ab
commit b4510233aa

View File

@@ -150,8 +150,9 @@ public class LivingEcoBoss extends PluginDependent {
for (Effect effect : effects) { for (Effect effect : effects) {
effect.onDeath(boss, entity, tick); effect.onDeath(boss, entity, tick);
} }
boss.removeLivingBoss(entity.getUniqueId()); boss.removeLivingBoss(uuid);
runnable.cancel(); runnable.cancel();
return;
} }
for (BossTicker ticker : tickers) { for (BossTicker ticker : tickers) {