Fix config iteration order (#7231)

This commit is contained in:
Take Weiland authored and GitHub committed 2020-09-15 22:10:27 +02:00
1 parent 46eb109a7e
commit 45e125b0ec
1 file changed
+1 -1
@@ -525,7 +525,7 @@ public class ForgeConfigSpec extends UnmodifiableConfigWrapper<UnmodifiableConfi
public ForgeConfigSpec build()
{
context.ensureEmpty();
Config valueCfg = Config.of(InMemoryFormat.withSupport(ConfigValue.class::isAssignableFrom));
Config valueCfg = Config.of(Config.getDefaultMapCreator(true, true), InMemoryFormat.withSupport(ConfigValue.class::isAssignableFrom));
values.forEach(v -> valueCfg.set(v.getPath(), v));
ForgeConfigSpec ret = new ForgeConfigSpec(storage, valueCfg, levelComments);