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);
|
ActiveBossHolder activeBossHolder = this.bossEntityManager.getActiveBossHolder(livingEntity);
|
||||||
Location location = livingEntity.getLocation();
|
Location location = livingEntity.getLocation();
|
||||||
|
|
||||||
if (activeBossHolder == null) return;
|
if (activeBossHolder == null || entityDamageEvent == null) return;
|
||||||
|
|
||||||
EntityDamageEvent.DamageCause damageCause = entityDamageEvent.getCause();
|
EntityDamageEvent.DamageCause damageCause = entityDamageEvent.getCause();
|
||||||
Boolean naturalDrops = activeBossHolder.getBossEntity().getDrops().getNaturalDrops();
|
Boolean naturalDrops = activeBossHolder.getBossEntity().getDrops().getNaturalDrops();
|
||||||
|
|
Loading…
Reference in New Issue