It is now possible to start a crafting task even if the crafting preview says you can't

This commit is contained in:
Raoul Van den Berge
2016-09-28 13:23:51 +02:00
parent e1d9fc0f93
commit 1b6c92f006
2 changed files with 4 additions and 2 deletions

View File

@@ -52,8 +52,7 @@ public class GuiCraftingPreview extends GuiBase {
public void init(int x, int y) {
cancelButton = addButton(x + 16, y + 144, 50, 20, t("gui.cancel"));
startButton = addButton(x + 85, y + 144, 50, 20, t("misc.refinedstorage:start"));
startButton.enabled = !stacks.isEmpty() && stacks.stream().filter(CraftingPreviewStack::cantCraft).count() == 0;
startButton.enabled = !stacks.isEmpty();
}
@Override