aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/dev/isxander/yacl/api/ConfigCategory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/dev/isxander/yacl/api/ConfigCategory.java b/src/main/java/dev/isxander/yacl/api/ConfigCategory.java
index b6ddcc2..5aafc62 100644
--- a/src/main/java/dev/isxander/yacl/api/ConfigCategory.java
+++ b/src/main/java/dev/isxander/yacl/api/ConfigCategory.java
@@ -136,12 +136,13 @@ public interface ConfigCategory {
public ConfigCategory build() {
Validate.notNull(name, "`name` must not be null to build `ConfigCategory`");
- Validate.notEmpty(rootOptions, "`at least one option must be added to build `ConfigCategory`");
List<OptionGroup> combinedGroups = new ArrayList<>();
combinedGroups.add(new OptionGroupImpl(Text.empty(), ImmutableList.copyOf(rootOptions), true));
combinedGroups.addAll(groups);
+ Validate.notEmpty(combinedGroups, "at least one option must be added to build `ConfigCategory`");
+
MutableText concatenatedTooltip = Text.empty();
boolean first = true;
for (Text line : tooltipLines) {