Skip to content

Commit 71d0540

Browse files
Fix #36
1 parent fed3c03 commit 71d0540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invui-core/src/main/java/xyz/xenondevs/invui/gui/TabGuiImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private List<SlotElement> getLinkingElements(Gui gui) {
6565

6666
@Override
6767
public boolean isTabAvailable(int tab) {
68-
return tabs.get(tab) != null;
68+
return tabs.size() > tab && tabs.get(tab) != null;
6969
}
7070

7171
@Override

0 commit comments

Comments
 (0)