9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-22 08:29:20 +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) {
effect.onDeath(boss, entity, tick);
}
boss.removeLivingBoss(entity.getUniqueId());
boss.removeLivingBoss(uuid);
runnable.cancel();
return;
}
for (BossTicker ticker : tickers) {