Selaa lähdekoodia

Fix custom entry translation

Lortseam 4 vuotta sitten
vanhempi
sitoutus
db5815a56a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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);
             }