aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++;
}
}