فهرست منبع

Fix custom entry translation

Lortseam 4 سال پیش
والد
کامیت
db5815a56a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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);
             }