Fixed exception
This commit is contained in:
1 parent
94c0c5b6db
commit
cd0d054e17
2 files changed
+2
No files matched your search
@@ -183,6 +183,7 @@ public class SmithingTable_V1_16 implements SmithingTable, InventoryHolder {
|
||||
|
||||
if (recipe instanceof SmithingRecipe smithingRecipe) {
|
||||
boolean test1 = smithingRecipe.getBase().test(finalBase);
|
||||
if (!finalBase.hasItemMeta()) return false;
|
||||
ItemMeta baseItemMeta = finalBase.getItemMeta();
|
||||
boolean test2 = smithingRecipe.getAddition().test(finalAddition);
|
||||
|
||||
|
||||
@@ -258,6 +258,7 @@ public class SmithingTable_V1_20 implements SmithingTable, InventoryHolder {
|
||||
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();
|
||||
boolean test3 = transformRecipe.getAddition().test(finalAddition);
|
||||
|
||||
|
||||
Reference in new issue
Block a user