Fix category comments not working. Closes #3593

This commit is contained in:
Vincent Lee committed 2017-01-13 22:20:43 -06:00
1 parent d53397111b
commit 71efbf8132
2 files changed
+10

No files matched your search

@@ -239,6 +239,8 @@ public class ConfigManager
else if (ftype.getSuperclass() == Object.class) //Only support classes that are one level below Object.
{
String sub = category + "." + f.getName().toLowerCase(Locale.ENGLISH);
cfg.getCategory(sub).setComment(comment);
Object sinst = get(instance, f);
for (Field sf : ftype.getDeclaredFields())
{
@@ -70,5 +70,13 @@ public class ConfigTest
@LangKey("this.is.not.a.good.key")
@Comment({"This is a really long", "Multi-line comment"})
public static String Comments = "Hi Tv!";
@Comment("Category Comment Test")
public static NestedType Inner = new NestedType();
public static class NestedType
{
public String HeyLook = "Go in!";
}
}
}