NichtStudioCode / InvUI

A spigot library for creating custom inventory-based GUIs.
MIT License
242 stars 19 forks source link

java.lang.IndexOutOfBoundsException on TabGuiImpl#isTabAvailable #36

Closed zvyap closed 1 year ago

zvyap commented 1 year ago

This method should check is it the tab exist, but it will throw IndexOutOfBoundsException instead of NULL (for return FALSE)

java.lang.IndexOutOfBoundsException: Index: 2 Size: 2
    at java.util.ImmutableCollections$AbstractImmutableList.outOfBounds(ImmutableCollections.java:333) ~[?:?]
    at java.util.ImmutableCollections$List12.get(ImmutableCollections.java:585) ~[?:?]
    at xyz.xenondevs.invui.gui.TabGuiImpl.isTabAvailable(TabGuiImpl.java:68) ~[?:?]