aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisXander <xander@isxander.dev>2023-08-18 12:57:45 +0100
committerisXander <xander@isxander.dev>2023-08-18 12:57:45 +0100
commitc11566072608683034864dbd4e0d3f5afa067537 (patch)
tree933d69d26395bffffec5e2e64393ec321752d597
parent0c8b646eefdc525b2a9d79d675ec305cae2bb0a2 (diff)
downloadYetAnotherConfigLib-c11566072608683034864dbd4e0d3f5afa067537.tar.gz
YetAnotherConfigLib-c11566072608683034864dbd4e0d3f5afa067537.tar.bz2
YetAnotherConfigLib-c11566072608683034864dbd4e0d3f5afa067537.zip
Fix multi-line descriptions
-rw-r--r--common/src/main/java/dev/isxander/yacl3/config/v2/api/autogen/SimpleOptionFactory.java5
1 files 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<A extends Annotation, T> 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++;
}
}