mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix category comments not working. Closes #3593
This commit is contained in:
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!";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user