diff --git a/src/main/java/io/github/thebusybiscuit/extraheads/listeners/HeadListener.java b/src/main/java/io/github/thebusybiscuit/extraheads/listeners/HeadListener.java index 67eb2a5..57065c5 100644 --- a/src/main/java/io/github/thebusybiscuit/extraheads/listeners/HeadListener.java +++ b/src/main/java/io/github/thebusybiscuit/extraheads/listeners/HeadListener.java @@ -49,7 +49,7 @@ private double getChance(@Nonnull EntityType type, @Nullable Player killer) { ItemStack item = killer.getInventory().getItemInMainHand(); SwordOfBeheading sword = (SwordOfBeheading) SlimefunItems.SWORD_OF_BEHEADING.getItem(); - if (item.isEmpty() || !sword.isItem(item) || sword.isDisabledIn(killer.getWorld())) { + if (item.isEmpty() || sword == null || !sword.isItem(item) || sword.isDisabledIn(killer.getWorld())) { return chance; }