Fix FieldWrapper.MapWrapper initialising wrong category (#4335)

This commit is contained in:
Choonster TheMage 2017-08-31 13:57:17 +10:00 committed by mezz
parent cb051f7893
commit d85fcb26c2
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -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;