diff --git a/src/main/java/com/artillexstudios/axsmithing/gui/impl/SmithingTable_V1_16.java b/src/main/java/com/artillexstudios/axsmithing/gui/impl/SmithingTable_V1_16.java index c4e2773..15a913f 100644 --- a/src/main/java/com/artillexstudios/axsmithing/gui/impl/SmithingTable_V1_16.java +++ b/src/main/java/com/artillexstudios/axsmithing/gui/impl/SmithingTable_V1_16.java @@ -183,8 +183,8 @@ private boolean checkRecipe(Inventory inventory, ItemStack finalBase, ItemStack if (recipe instanceof SmithingRecipe smithingRecipe) { boolean test1 = smithingRecipe.getBase().test(finalBase); - if (!finalBase.hasItemMeta()) return false; ItemMeta baseItemMeta = finalBase.getItemMeta(); + if (baseItemMeta == null) return false; boolean test2 = smithingRecipe.getAddition().test(finalAddition); if (dontConvertWithModelData && baseItemMeta.hasCustomModelData()) { diff --git a/src/main/java/com/artillexstudios/axsmithing/gui/impl/SmithingTable_V1_20.java b/src/main/java/com/artillexstudios/axsmithing/gui/impl/SmithingTable_V1_20.java index b0b2829..6235c98 100644 --- a/src/main/java/com/artillexstudios/axsmithing/gui/impl/SmithingTable_V1_20.java +++ b/src/main/java/com/artillexstudios/axsmithing/gui/impl/SmithingTable_V1_20.java @@ -258,8 +258,8 @@ private boolean checkRecipe(Inventory inventory, ItemStack finalTemplate, ItemSt if (recipe instanceof SmithingTransformRecipe transformRecipe) { boolean test1 = transformRecipe.getTemplate().test(finalTemplate); boolean test2 = transformRecipe.getBase().test(finalBase); - if (!finalBase.hasItemMeta()) return false; ItemMeta baseItemMeta = finalBase.getItemMeta(); + if (baseItemMeta == null) return false; boolean test3 = transformRecipe.getAddition().test(finalAddition); if (dontConvertWithModelData && baseItemMeta.hasCustomModelData()) {