Parcourir la source

Fix custom entry translation

Lortseam il y a 4 ans
Parent
commit
db5815a56a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/src/main/java/me/lortseam/completeconfig/data/Entry.java

+ 1 - 1
lib/src/main/java/me/lortseam/completeconfig/data/Entry.java

@@ -143,7 +143,7 @@ public class Entry<T> implements DataPart, Identifiable, Translatable, TooltipSu
         if (translation == null) {
             Optional<ConfigEntry> annotation = origin.getOptionalAnnotation(ConfigEntry.class);
             if (annotation.isPresent() && !StringUtils.isBlank(annotation.get().translationKey())) {
-                translation = origin.getParent().getTranslation().append(annotation.get().translationKey());
+                translation = origin.getParent().getTranslation().root().append(annotation.get().translationKey());
             } else {
                 translation = origin.getParent().getTranslation().append(id);
             }