Null check on boss death.

This commit is contained in:
Brianna 2020-02-01 07:18:43 -05:00
parent 63a88682ce
commit 183c262051
1 changed files with 1 additions and 1 deletions

View File

@ -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();