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

@@ -1,5 +1,8 @@
# Refined Storage Changelog # Refined Storage Changelog
### 1.1.2
- It is now possible to start a crafting task even if the crafting preview says you can't (raoulvdberge)
### 1.1.1 ### 1.1.1
- Fixed crash on servers (raoulvdberge) - Fixed crash on servers (raoulvdberge)

View File

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