Moved IMC calls to Init
This commit is contained in:
parent
52c8e658d5
commit
3dc6cf4b4f
4 changed files with 39 additions and 5 deletions
|
@ -145,11 +145,13 @@ public class BiomesOPlenty
|
||||||
DimensionManager.registerProviderType(-1, WorldProviderBOPhell.class, true);
|
DimensionManager.registerProviderType(-1, WorldProviderBOPhell.class, true);
|
||||||
DimensionManager.registerProviderType(BOPConfiguration.promisedLandDimID, WorldProviderPromised.class, false);
|
DimensionManager.registerProviderType(BOPConfiguration.promisedLandDimID, WorldProviderPromised.class, false);
|
||||||
DimensionManager.registerDimension(BOPConfiguration.promisedLandDimID, BOPConfiguration.promisedLandDimID);
|
DimensionManager.registerDimension(BOPConfiguration.promisedLandDimID, BOPConfiguration.promisedLandDimID);
|
||||||
|
|
||||||
|
BOPCrossIntegration.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostInit
|
@PostInit
|
||||||
public void postInit(FMLPostInitializationEvent event)
|
public void postInit(FMLPostInitializationEvent event)
|
||||||
{
|
{
|
||||||
BOPCrossIntegration.init();
|
BOPCrossIntegration.postInit();
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -12,10 +12,14 @@ public class BCIntegration {
|
||||||
public static void init()
|
public static void init()
|
||||||
{
|
{
|
||||||
addFacades();
|
addFacades();
|
||||||
addLiquids();
|
|
||||||
excludeOilGeneration();
|
excludeOilGeneration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void postInit()
|
||||||
|
{
|
||||||
|
addLiquids();
|
||||||
|
}
|
||||||
|
|
||||||
private static void excludeOilGeneration()
|
private static void excludeOilGeneration()
|
||||||
{
|
{
|
||||||
FMLInterModComms.sendMessage("BuildCraft|Energy", "oil-gen-exclude", Integer.toString(Biomes.promisedLandForest.get().biomeID));
|
FMLInterModComms.sendMessage("BuildCraft|Energy", "oil-gen-exclude", Integer.toString(Biomes.promisedLandForest.get().biomeID));
|
||||||
|
|
|
@ -27,6 +27,31 @@ public class BOPCrossIntegration {
|
||||||
e.printStackTrace(System.err);
|
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"))
|
if (Loader.isModLoaded("BWG4"))
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,12 +16,15 @@ public class ThaumcraftIntegration {
|
||||||
|
|
||||||
public static void init()
|
public static void init()
|
||||||
{
|
{
|
||||||
addAspects();
|
|
||||||
|
|
||||||
FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(Blocks.leavesFruit.get(), 1, 3));
|
FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(Blocks.leavesFruit.get(), 1, 3));
|
||||||
FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(Blocks.foliage.get(), 1, 8));
|
FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(Blocks.foliage.get(), 1, 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void postInit()
|
||||||
|
{
|
||||||
|
addAspects();
|
||||||
|
}
|
||||||
|
|
||||||
private static void addAspects()
|
private static void addAspects()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue