v2.4.2: fixed disabled cancel button when there are leftover alch items
This commit is contained in:
@@ -650,7 +650,16 @@ public class AlchemyScene extends PixelScene {
|
||||
|
||||
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 ){
|
||||
|
||||
Reference in New Issue
Block a user