Move config initialization to PostInit event
This commit is contained in:
parent
d70d0c2d38
commit
f4658f6b3d
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue