Skip to content

Commit

Permalink
Fix #11 - severe duplication bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ampflower committed Oct 5, 2024
1 parent da7a84d commit 2ec3517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
org.gradle.jvmargs=-Xmx1G

# Mod Properties
projectVersion=4.4.1
projectVersion=4.4.2
maven_group=gay.ampflower.mod

curseforgeId=914551
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/tfar/fastbench/MixinHooks.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,13 @@ public static ItemStack handleShiftCraft(
Player player, AbstractContainerMenu menu, Slot resultSlot, CraftingContainer container,
ResultContainer craftResult, int outStart, int outEnd) {
ItemStack outputCopy = ItemStack.EMPTY;
CraftingInput input = container.asCraftInput();
CraftingInventoryDuck duck = (CraftingInventoryDuck) container;
duck.setCheckMatrixChanges(false);
RecipeHolder<CraftingRecipe> recipeHolder = coerce(craftResult.getRecipeUsed());

if (recipeHolder != null && resultSlot != null && resultSlot.hasItem()) {
final Recipe<CraftingInput> recipe = recipeHolder.value();
while (recipe.matches(input, player.level())) {
while (recipe.matches(container.asCraftInput(), player.level())) {
ItemStack recipeOutput = resultSlot.getItem().copy();
outputCopy = recipeOutput.copy();

Expand Down

0 comments on commit 2ec3517

Please sign in to comment.