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