Skip to content

Commit

Permalink
v2.4.2: fixed disabled cancel button when there are leftover alch items
Browse files Browse the repository at this point in the history
  • Loading branch information
00-Evan committed Jun 4, 2024
1 parent cba6917 commit 5bef46b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,16 @@ private void combine( int slot ){

lastRecipe = recipe;
repeat.enable(foundItems);

cancel.enable(false);
synchronized (inputs) {
for (int i = 0; i < inputs.length; i++) {
if (inputs[i] != null && inputs[i].item() != null) {
cancel.enable(true);
break;
}
}
}
}

public void craftItem( ArrayList<Item> ingredients, Item result ){
Expand Down

0 comments on commit 5bef46b

Please sign in to comment.