From 634ffcf39df76f9b45460fd8f6d5fe4419d67e6c Mon Sep 17 00:00:00 2001 From: Roadhog360 Date: Tue, 26 Dec 2023 20:44:15 -0600 Subject: [PATCH] Fix recipe validation Apparently it doesn't work when I put them together. --- .../java/ganymedes01/etfuturum/recipes/ModRecipes.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/ganymedes01/etfuturum/recipes/ModRecipes.java b/src/main/java/ganymedes01/etfuturum/recipes/ModRecipes.java index 5012286c..8b6b68a2 100644 --- a/src/main/java/ganymedes01/etfuturum/recipes/ModRecipes.java +++ b/src/main/java/ganymedes01/etfuturum/recipes/ModRecipes.java @@ -1187,13 +1187,13 @@ private static void registerOre(String oreName, Block ore) { } private static void addSmelting(Item input, ItemStack output, float exp) { - if (validateItems(input, output)) { + if (validateItems(input) && validateItems(output)) { GameRegistry.addSmelting(input, output, exp); } } private static void addSmelting(Block input, ItemStack output, float exp) { - if (validateItems(input, output)) { + if (validateItems(input) && validateItems(output)) { GameRegistry.addSmelting(input, output, exp); } } @@ -1205,13 +1205,13 @@ private static void addSmelting(ItemStack input, ItemStack output, float exp) { } private static void addShapedRecipe(ItemStack output, Object... objects) { - if (validateItems(output, objects)) { + if (validateItems(output) && validateItems(objects)) { GameRegistry.addRecipe(new ShapedEtFuturumRecipe(output, objects)); } } private static void addShapelessRecipe(ItemStack output, Object... objects) { - if (validateItems(output, objects)) { + if (validateItems(output) && validateItems(objects)) { GameRegistry.addRecipe(new ShapelessEtFuturumRecipe(output, objects)); } }