GUIBuilder: Allow setGUIs for GUIType.TAB

This commit is contained in:
NichtStudioCode 2021-08-06 15:32:25 +02:00
parent d7900f9774
commit ba8c523514

@ -88,7 +88,7 @@ public class GUIBuilder {
} }
public GUIBuilder setGUIs(@NotNull List<GUI> guis) { public GUIBuilder setGUIs(@NotNull List<GUI> guis) {
if (guiType != PAGED_GUIs) if (guiType != PAGED_GUIs && guiType != TAB)
throw new UnsupportedOperationException("GUIs cannot be set in this gui type."); throw new UnsupportedOperationException("GUIs cannot be set in this gui type.");
this.guis = guis; this.guis = guis;
return this; return this;