Fix config iteration order (#7230)

This commit is contained in:
Take Weiland authored and GitHub committed 2020-08-21 10:23:20 -07:00
1 parent 9118c3dd24
commit c2de232703
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);