Ripped out poor integration for BC pumps. Closes #24
This commit is contained in:
parent
63f6b85f0a
commit
da1a2233bb
2 changed files with 0 additions and 36 deletions
|
@ -1,10 +1,7 @@
|
|||
package biomesoplenty.integration;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import biomesoplenty.api.Biomes;
|
||||
import biomesoplenty.api.BlockReferences;
|
||||
import biomesoplenty.api.Fluids;
|
||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
|
||||
public class BCIntegration {
|
||||
|
@ -15,11 +12,6 @@ public class BCIntegration {
|
|||
excludeOilGeneration();
|
||||
}
|
||||
|
||||
public static void postInit()
|
||||
{
|
||||
addLiquids();
|
||||
}
|
||||
|
||||
private static void excludeOilGeneration()
|
||||
{
|
||||
FMLInterModComms.sendMessage("BuildCraft|Energy", "oil-gen-exclude", Integer.toString(Biomes.promisedLandForest.get().biomeID));
|
||||
|
@ -88,23 +80,6 @@ public class BCIntegration {
|
|||
FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", getBID("giantFlowerRed") + "@" + getBMeta("giantFlowerRed"));
|
||||
FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", getBID("giantFlowerYellow") + "@" + getBMeta("giantFlowerYellow"));
|
||||
}
|
||||
|
||||
private static void addLiquids()
|
||||
{
|
||||
try
|
||||
{
|
||||
Class bcUtils = Class.forName("buildcraft.core.utils.Utils");
|
||||
|
||||
Method method = bcUtils.getMethod("liquidId", int.class);
|
||||
|
||||
method.invoke(bcUtils, Fluids.springWaterFluid.get().getBlockID());
|
||||
method.invoke(bcUtils, Fluids.liquidPoisonFluid.get().getBlockID());
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private static int getBID(String name) {
|
||||
return BlockReferences.getBlockID(name);
|
||||
|
|
|
@ -46,17 +46,6 @@ public class BOPCrossIntegration {
|
|||
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue