Removed Facade Creative Tab when they are disabled.

Added Sky Stone to BC's Facades.
This commit is contained in:
AlgorithmX2 2014-04-04 10:46:05 -05:00
parent 5571467f20
commit 86c2ad49ee
2 changed files with 13 additions and 2 deletions

View file

@ -125,7 +125,8 @@ public class AppEng
if ( Platform.isClient() )
{
CreativeTab.init();
CreativeTabFacade.init();
if ( AEConfig.instance.isFeatureEnabled( AEFeature.Facades ) )
CreativeTabFacade.init();
CommonHelper.proxy.init();
}

View file

@ -35,7 +35,8 @@ public class BC extends BaseModule implements IBC
@Override
public void addFacade(ItemStack item)
{
FMLInterModComms.sendMessage( "BuildCraft|Transport", "add-facade", item );
if ( item != null )
FMLInterModComms.sendMessage( "BuildCraft|Transport", "add-facade", item );
}
@Override
@ -186,6 +187,15 @@ public class BC extends BaseModule implements IBC
addFacade( b.blockQuartz.stack( 1 ) );
addFacade( b.blockQuartzChiseled.stack( 1 ) );
addFacade( b.blockQuartzPiller.stack( 1 ) );
Block skyStone = b.blockSkyStone.block();
if ( skyStone != null )
{
addFacade( new ItemStack( skyStone, 1, 0 ) );
addFacade( new ItemStack( skyStone, 1, 1 ) );
addFacade( new ItemStack( skyStone, 1, 2 ) );
addFacade( new ItemStack( skyStone, 1, 3 ) );
}
}
@Override