Quellcode durchsuchen

Fix custom entry translation

Lortseam vor 4 Jahren
Ursprung
Commit
db5815a56a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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);
             }