Skip to content

Commit 8109de7

Browse files
Fix StonecutterWindow displaying actual recipes if buttonsGui size is 0
The default buttonsGui is of size 0, so buttonsDirty is never set to true on item init, causing the recipes to not be overridden.
1 parent 9adef6d commit 8109de7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invui/src/main/java/xyz/xenondevs/invui/window/StonecutterWindowImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ final class StonecutterWindowImpl extends AbstractSplitWindow<CustomStonecutterM
4040
private final Gui lowerGui;
4141
private final Gui buttonsGui;
4242
private final @Nullable ItemStack[] buttons;
43-
private boolean buttonsDirty = false;
43+
private boolean buttonsDirty = true;
4444
private final List<BiConsumer<? super Integer, ? super Integer>> selectedSlotChangeHandlers;
4545
private final MutableProperty<Integer> selectedSlot;
4646
private final int selectedSlotMagicSlot;

0 commit comments

Comments
 (0)