From 7bfbbc908d53c379fa36a929282e7f20b95afde8 Mon Sep 17 00:00:00 2001 From: xander Date: Fri, 2 Sep 2022 10:45:53 +0100 Subject: fix group validation & icon & wiki test stuff --- src/main/java/dev/isxander/yacl/api/ConfigCategory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java') 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 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) { -- cgit