mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-23 00:49:36 +00:00
Fixed potential NPE
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user