mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Fix FieldWrapper.MapWrapper initialising wrong category (#4335)
This commit is contained in:
1 parent
cb051f7893
commit
d85fcb26c2
2 files changed
+2
-1
No files matched your search
@@ -159,7 +159,7 @@ public abstract class FieldWrapper implements IFieldWrapper
|
||||
@Override
|
||||
public void setupConfiguration(Configuration cfg, String desc, String langKey, boolean reqMCRestart, boolean reqWorldRestart)
|
||||
{
|
||||
ConfigCategory confCat = cfg.getCategory(category);
|
||||
ConfigCategory confCat = cfg.getCategory(getCategory());
|
||||
confCat.setComment(desc);
|
||||
confCat.setLanguageKey(langKey);
|
||||
confCat.setRequiresMcRestart(reqMCRestart);
|
||||
|
||||
@@ -148,6 +148,7 @@ public class ConfigTest
|
||||
public static class CONFIG_MAP
|
||||
{
|
||||
@Name("map")
|
||||
@Comment("This comment belongs to the \"map\" category, not the \"general\" category")
|
||||
@RequiresMcRestart
|
||||
public static Map<String, Integer[]> theMap;
|
||||
|
||||
|
||||
Reference in new issue
Block a user