Moved IMC calls to Init

This commit is contained in:
Adubbz 2013-06-05 06:21:06 +10:00
parent 52c8e658d5
commit 3dc6cf4b4f
4 changed files with 39 additions and 5 deletions

View file

@ -145,11 +145,13 @@ public class BiomesOPlenty
DimensionManager.registerProviderType(-1, WorldProviderBOPhell.class, true);
DimensionManager.registerProviderType(BOPConfiguration.promisedLandDimID, WorldProviderPromised.class, false);
DimensionManager.registerDimension(BOPConfiguration.promisedLandDimID, BOPConfiguration.promisedLandDimID);
BOPCrossIntegration.init();
}
@PostInit
public void postInit(FMLPostInitializationEvent event)
{
BOPCrossIntegration.init();
BOPCrossIntegration.postInit();
}
}

View file

@ -8,14 +8,18 @@ import biomesoplenty.api.Liquids;
import cpw.mods.fml.common.event.FMLInterModComms;
public class BCIntegration {
public static void init()
{
addFacades();
addLiquids();
excludeOilGeneration();
}
public static void postInit()
{
addLiquids();
}
private static void excludeOilGeneration()
{
FMLInterModComms.sendMessage("BuildCraft|Energy", "oil-gen-exclude", Integer.toString(Biomes.promisedLandForest.get().biomeID));

View file

@ -27,6 +27,31 @@ public class BOPCrossIntegration {
e.printStackTrace(System.err);
}
}
}
public static void postInit()
{
if (Loader.isModLoaded("BuildCraft|Transport"))
{
try {
BCIntegration.postInit();
}
catch (Exception e) {
System.out.println("[BiomesOPlenty] There was an error while integrating BuildCraft|Transport with Biomes O' Plenty!");
e.printStackTrace(System.err);
}
}
if (Loader.isModLoaded("Thaumcraft"))
{
try {
ThaumcraftIntegration.postInit();
}
catch (Exception e) {
System.out.println("[BiomesOPlenty] There was an error while integrating Thaumcraft with Biomes O' Plenty!");
e.printStackTrace(System.err);
}
}
if (Loader.isModLoaded("BWG4"))
{

View file

@ -16,11 +16,14 @@ public class ThaumcraftIntegration {
public static void init()
{
addAspects();
FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(Blocks.leavesFruit.get(), 1, 3));
FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(Blocks.foliage.get(), 1, 8));
}
public static void postInit()
{
addAspects();
}
private static void addAspects()
{