Skip to content

Commit

Permalink
Fix recipe validation
Browse files Browse the repository at this point in the history
Apparently it doesn't work when I put them together.
  • Loading branch information
Roadhog360 committed Dec 27, 2023
1 parent 3b71e5d commit 634ffcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/ganymedes01/etfuturum/recipes/ModRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand All @@ -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));
}
}
Expand Down

0 comments on commit 634ffcf

Please sign in to comment.