Fix FieldWrapper.MapWrapper initialising wrong category (#4335)
This commit is contained in:
parent
cb051f7893
commit
d85fcb26c2
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue