Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master-1.19-lts' into master-1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Dec 27, 2023
2 parents 5dd5dc2 + 7b341b4 commit 9090007
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/changelog/1.18.2-1.1.6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
As always, don't forget to backup your world before updating!
Requires CyclopsCore version 1.13.4 or higher.

Fixes:
* Fix 2x2 Integrated Crafting recipes from Machine Reader failing, Closes CyclopsMC/IntegratedDynamics#1316

6 changes: 6 additions & 0 deletions resources/changelog/1.19.2-1.1.6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
As always, don't forget to backup your world before updating!
Requires CyclopsCore version 1.17.0 or higher.

Fixes:
* Fix 2x2 Integrated Crafting recipes from Machine Reader failing, Closes CyclopsMC/IntegratedDynamics#1316

Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ public boolean craft(Function<IngredientComponent<?, ?>, PartPos> targetGetter,
Level level = target.getPos().getLevel(true);

return CraftingHelpers.findServerRecipe(RecipeType.CRAFTING, grid, level)
.or(() -> {
CraftingGrid gridSmall = new CraftingGrid(ingredients, 2, 2);
return CraftingHelpers.findServerRecipe(RecipeType.CRAFTING, gridSmall, level);
})
.map(recipe -> {
ItemStack result = recipe.assemble(grid, level.registryAccess());

Expand Down

0 comments on commit 9090007

Please sign in to comment.