Skip to content

Commit dc71a51

Browse files
Fix CartographyWindow not showing result slot if input empty
1 parent eb0decf commit dc71a51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public CartographyWindowImpl(
4545

4646
@Override
4747
protected void setMenuItem(int slot, @Nullable ItemStack itemStack) {
48-
if (slot == 0) {
49-
super.setMenuItem(0, ItemUtils2.nonEmpty(itemStack));
48+
if (slot == 0 || slot == 1) {
49+
super.setMenuItem(slot, ItemUtils2.nonEmpty(itemStack));
5050
} else {
5151
super.setMenuItem(slot, itemStack);
5252
}

0 commit comments

Comments
 (0)