diff options
author | xander <xander@isxander.dev> | 2022-09-02 10:45:53 +0100 |
---|---|---|
committer | xander <xander@isxander.dev> | 2022-09-02 10:45:53 +0100 |
commit | 7bfbbc908d53c379fa36a929282e7f20b95afde8 (patch) | |
tree | 939adcb7460f08bfb2335f94b26d114c2dd05dcf /src/main/java | |
parent | cff8d5bad318d133ab1089524619fc15f3b15b6f (diff) | |
download | YetAnotherConfigLib-7bfbbc908d53c379fa36a929282e7f20b95afde8.tar.gz YetAnotherConfigLib-7bfbbc908d53c379fa36a929282e7f20b95afde8.tar.bz2 YetAnotherConfigLib-7bfbbc908d53c379fa36a929282e7f20b95afde8.zip |
fix group validation & icon & wiki test stuff
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/dev/isxander/yacl/api/ConfigCategory.java | 3 |
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) { |