Skip to content

Commit

Permalink
Fix machines accidentally locking multiple outputs (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n authored Dec 19, 2024
1 parent 31f4d27 commit 5d9c1b6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,10 @@ protected boolean putItemOutputs(MachineRecipe recipe, boolean simulate, boolean
} else {
stack.increment(ins);
}
remainingAmount -= ins;

}
remainingAmount -= ins;
// ins changed inside of previous if, need to check again!
if (ins > 0) {
locksToToggle.add(stackId - 1);
lockItems.add(output.variant().getItem());
if (!simulate) {
Expand Down

0 comments on commit 5d9c1b6

Please sign in to comment.