It is now possible to start a crafting task even if the crafting preview says you can't
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user