Move config initialization to PostInit event

This commit is contained in:
Stephen Seo 2018-09-13 15:00:00 +09:00
parent d70d0c2d38
commit f4658f6b3d

View file

@ -61,7 +61,6 @@ public class TurnBasedMinecraftMod
{ {
currentBattle = null; currentBattle = null;
battleManager = null; battleManager = null;
config = new Config(logger);
// register packets // register packets
NWINSTANCE.registerMessage( NWINSTANCE.registerMessage(
@ -93,6 +92,7 @@ public class TurnBasedMinecraftMod
@EventHandler @EventHandler
public void postInit(FMLPostInitializationEvent event) public void postInit(FMLPostInitializationEvent event)
{ {
config = new Config(logger);
logger.debug("POSTINIT"); logger.debug("POSTINIT");
} }