From c11566072608683034864dbd4e0d3f5afa067537 Mon Sep 17 00:00:00 2001 From: isXander Date: Fri, 18 Aug 2023 12:57:45 +0100 Subject: Fix multi-line descriptions --- .../isxander/yacl3/config/v2/api/autogen/SimpleOptionFactory.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/dev/isxander/yacl3/config/v2/api/autogen/SimpleOptionFactory.java b/common/src/main/java/dev/isxander/yacl3/config/v2/api/autogen/SimpleOptionFactory.java index fc2957d..f7d807f 100644 --- a/common/src/main/java/dev/isxander/yacl3/config/v2/api/autogen/SimpleOptionFactory.java +++ b/common/src/main/java/dev/isxander/yacl3/config/v2/api/autogen/SimpleOptionFactory.java @@ -58,9 +58,10 @@ public abstract class SimpleOptionFactory implements Op builder.text(Component.translatable(key)); } else { key += "."; - int i = 0; - while (Language.getInstance().has(key + i++)) { + int i = 1; + while (Language.getInstance().has(key + i)) { builder.text(Component.translatable(key + i)); + i++; } } -- cgit