use of am2.configuration.AMConfig in project ArsMagica2 by Mithion.
the class AMCore method preInit.
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
String configBase = event.getSuggestedConfigurationFile().getAbsolutePath();
configBase = popPathFolder(configBase);
compendiumBase = popPathFolder(configBase);
configBase += File.separatorChar + "AM2" + File.separatorChar;
config = new AMConfig(new File(configBase + File.separatorChar + "AM2.cfg"));
skillConfig = new SkillConfiguration(new File(configBase + "SkillConf.cfg"));
AMNetHandler.INSTANCE.init();
proxy.InitializeAndRegisterHandlers();
proxy.preinit();
}
Aggregations