mirror of
https://github.com/songoda/EpicBosses.git
synced 2025-02-08 07:01:23 +01:00
Null check on boss death.
This commit is contained in:
parent
63a88682ce
commit
183c262051
@ -45,7 +45,7 @@ public class BossDeathListener implements Listener {
|
||||
ActiveBossHolder activeBossHolder = this.bossEntityManager.getActiveBossHolder(livingEntity);
|
||||
Location location = livingEntity.getLocation();
|
||||
|
||||
if (activeBossHolder == null) return;
|
||||
if (activeBossHolder == null || entityDamageEvent == null) return;
|
||||
|
||||
EntityDamageEvent.DamageCause damageCause = entityDamageEvent.getCause();
|
||||
Boolean naturalDrops = activeBossHolder.getBossEntity().getDrops().getNaturalDrops();
|
||||
|
Loading…
Reference in New Issue
Block a user