Skip to content

Commit

Permalink
Only Copy Inputs for Finding Crafting Output (closes #474)
Browse files Browse the repository at this point in the history
  • Loading branch information
hammy275 committed Sep 22, 2024
1 parent d484c68 commit 39d1ef8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public static boolean handleSmithingTableCraft(SmithingTableStorage storage, Blo

public static ItemStack getRecipeOutput(ServerPlayer player, ItemStack[] stacksIn) {
int invDim = stacksIn.length >= 9 ? 3 : 2;
List<ItemStack> stacks = new ArrayList<>(Arrays.asList(stacksIn).subList(0, invDim * invDim + 1));
List<ItemStack> stacks = new ArrayList<>(Arrays.asList(stacksIn).subList(0, invDim * invDim));
CraftingInput inv = CraftingInput.of(invDim, invDim, stacks);

Optional<RecipeHolder<CraftingRecipe>> res = player.getServer().getRecipeManager().getRecipeFor(RecipeType.CRAFTING,
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ enabled_platforms=fabric,forge,neoforge
parchment_version=1.21:2024.07.28

archives_base_name=immersivemc
mod_version=1.5.0-beta2
mod_version=1.5.0-beta2.1
maven_group=com.hammy275

fabric_loader_version=0.16.5
Expand Down

0 comments on commit 39d1ef8

Please sign in to comment.