Added Integration Check

This commit is contained in:
AlgorithmX2
2014-01-28 14:51:44 -06:00
parent e7cda2b8e0
commit 24ad83356c
2 changed files with 21 additions and 12 deletions
+7 -4
View File
@@ -26,11 +26,14 @@ public abstract class BuildCraft extends AERootPoweredTile implements IPowerRece
{
if ( Loader.isModLoaded( "BuildCraftAPI|power" ) )
{
IBC bcIntegration = (IBC) AppEng.instance.getIntegration( "BC" );
if ( bcIntegration != null )
if ( AppEng.instance.isIntegrationEnabled( "BC" ) )
{
addNewHandler( bcPowerWrapper = bcIntegration.createPerdition( this ) );
bcPowerWrapper.configure( 1, 380, 1.0f / 5.0f, 1000 );
IBC bcIntegration = (IBC) AppEng.instance.getIntegration( "BC" );
if ( bcIntegration != null )
{
addNewHandler( bcPowerWrapper = bcIntegration.createPerdition( this ) );
bcPowerWrapper.configure( 1, 380, 1.0f / 5.0f, 1000 );
}
}
}
}