Added support for any phase loading, This will leave no values unconfigured

This commit is contained in:
tgame14 2014-04-10 20:57:21 +03:00
parent c436ee2dfb
commit c5368ba283
2 changed files with 11 additions and 11 deletions

View file

@ -137,15 +137,15 @@ public class ResonantInduction
proxy.postInit();
Settings.CONFIGURATION.save();
}
//
// @ForgeSubscribe
// public void configAnnotationAdded(ConfigAnnotationEvent event)
// {
// if (event.sourceClass.startsWith("resonantinduction"))
// {
// ConfigHandler.handleClass(event.sourceClass, Settings.CONFIGURATION);
// }
// }
@ForgeSubscribe
public void configAnnotationAdded(ConfigAnnotationEvent event)
{
if (event.sourceClass.startsWith(Settings.DOMAIN))
{
ConfigHandler.handleClass(event.sourceClass, Settings.CONFIGURATION);
}
}
/**
* Recipe Types

View file

@ -16,7 +16,7 @@ import cpw.mods.fml.common.ModMetadata;
public class Settings
{
public static final Configuration CONFIGURATION = new Configuration(new File(Loader.instance().getConfigDir(), Reference.NAME + ".cfg"));
public static final String DOMAIN = "resonantinduction";
/** IDs suggested by Jyzarc and Horfius */
public static final IDManager idManager;
@ -27,7 +27,7 @@ public class Settings
CONFIGURATION.save();
}
public static int getNextBlockID()
public static int getNextBlockID()
{
return idManager.getNextBlockID();
}