mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Fix missing comments in configs created with annotations (#5189)
This commit is contained in:
1 parent
c11a712e2f
commit
3dfe47944d
1 file changed
+2
-3
@@ -39,6 +39,7 @@ import net.minecraftforge.common.config.Config.Name;
|
||||
import net.minecraftforge.fml.common.FMLLog;
|
||||
import net.minecraftforge.fml.common.Loader;
|
||||
import net.minecraftforge.fml.common.LoaderException;
|
||||
import net.minecraftforge.fml.common.LoaderState;
|
||||
import net.minecraftforge.fml.common.discovery.ASMDataTable;
|
||||
import net.minecraftforge.fml.common.discovery.ASMDataTable.ASMData;
|
||||
import net.minecraftforge.fml.common.discovery.asm.ModAnnotation.EnumHolder;
|
||||
@@ -170,17 +171,15 @@ public class ConfigManager
|
||||
|
||||
File file = new File(configDir, name + ".cfg");
|
||||
|
||||
boolean loading = false;
|
||||
Configuration cfg = CONFIGS.get(file.getAbsolutePath());
|
||||
if (cfg == null)
|
||||
{
|
||||
cfg = new Configuration(file);
|
||||
cfg.load();
|
||||
CONFIGS.put(file.getAbsolutePath(), cfg);
|
||||
loading = true;
|
||||
}
|
||||
|
||||
sync(cfg, cls, modid, category, loading, null);
|
||||
sync(cfg, cls, modid, category, !Loader.instance().hasReachedState(LoaderState.AVAILABLE), null);
|
||||
|
||||
cfg.save();
|
||||
|
||||
|
||||
Reference in new issue
Block a user