소스 검색

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);
             }