diff --git a/pom.xml b/pom.xml index 947d53e..209f459 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ nu.nerd KitchenSink KitchenSink - 0.15.0 + 0.15.1 jar A plugin for miscellaneous functionality that hasn't found a home elsewhere. https://github.com/NerdNu/KitchenSink diff --git a/src/nu/nerd/kitchensink/KitchenSinkListener.java b/src/nu/nerd/kitchensink/KitchenSinkListener.java index 131f0a1..3f1697f 100644 --- a/src/nu/nerd/kitchensink/KitchenSinkListener.java +++ b/src/nu/nerd/kitchensink/KitchenSinkListener.java @@ -627,7 +627,7 @@ public void catchEntityPreDeath(EntityDamageEvent event) { if (event instanceof EntityDamageByBlockEvent) { EntityDamageByBlockEvent e = (EntityDamageByBlockEvent) event; Block block = e.getDamager(); - lastDamage = "block " + block.getType().toString() + " "; + lastDamage = "block " + (block != null ? block.getType().toString() : "?") + " "; } else if (event instanceof EntityDamageByEntityEvent) { Entity damager = ((EntityDamageByEntityEvent) event).getDamager(); if (damager instanceof Projectile) {