From bd3a92994eee0c7beb68cbfacd2f958a751bd646 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Wed, 27 Dec 2023 17:06:21 +0100 Subject: [PATCH] Fix 2x2 Integrated Crafting recipes from Machine Reader failing Closes CyclopsMC/IntegratedDynamics#1316 --- .../processoverride/CraftingProcessOverrideCraftingTable.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/cyclops/integratedcrafting/core/crafting/processoverride/CraftingProcessOverrideCraftingTable.java b/src/main/java/org/cyclops/integratedcrafting/core/crafting/processoverride/CraftingProcessOverrideCraftingTable.java index 47456d2c..c256e190 100644 --- a/src/main/java/org/cyclops/integratedcrafting/core/crafting/processoverride/CraftingProcessOverrideCraftingTable.java +++ b/src/main/java/org/cyclops/integratedcrafting/core/crafting/processoverride/CraftingProcessOverrideCraftingTable.java @@ -50,6 +50,10 @@ public boolean craft(Function, PartPos> targetGetter, CraftingGrid grid = new CraftingGrid(ingredients, 3, 3); return CraftingHelpers.findServerRecipe(RecipeType.CRAFTING, grid, target.getPos().getLevel(true)) + .or(() -> { + CraftingGrid gridSmall = new CraftingGrid(ingredients, 2, 2); + return CraftingHelpers.findServerRecipe(RecipeType.CRAFTING, gridSmall, target.getPos().getLevel(true)); + }) .map(recipe -> { ItemStack result = recipe.assemble(grid);