diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/support/obtaining/EnchantingListeners.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/support/obtaining/EnchantingListeners.java index 58f6b2bb..27986283 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/support/obtaining/EnchantingListeners.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/support/obtaining/EnchantingListeners.java @@ -204,7 +204,9 @@ public class EnchantingListeners extends PluginDependent implements Listener { // Ew this.getPlugin().getScheduler().runLater(() -> { ItemStack item0 = event.getInventory().getItem(0); - assert item0 != null; + if (item0 == null) { + return; + } if (item0.getItemMeta() instanceof EnchantmentStorageMeta) { EnchantmentStorageMeta meta = (EnchantmentStorageMeta) item0.getItemMeta(); for (Enchantment enchantment : meta.getStoredEnchants().keySet()) {