Fixes the cable bus obstructing lighting and some crash issues when placing/breaking cable buses that have not been assigned a bus container yet.

This commit is contained in:
Sebastian Hartte
2016-08-26 23:34:18 +02:00
parent 1246eb8bdf
commit fb04890a50
2 changed files with 28 additions and 7 deletions
@@ -81,7 +81,8 @@ public class BlockCableBus extends AEBaseTileBlock
{
super( AEGlassMaterial.INSTANCE );
this.setLightOpacity( 0 );
this.setFullSize( this.setOpaque( false ) );
this.setFullSize( false );
this.setOpaque( false );
// this will actually be overwritten later through setupTile and the
// combined layers
@@ -90,6 +91,12 @@ public class BlockCableBus extends AEBaseTileBlock
public static final CableBusContainerUnlistedProperty cableBus = new CableBusContainerUnlistedProperty();
@Override
public boolean isFullCube( IBlockState state )
{
return false;
}
@Override
protected BlockStateContainer createBlockState()
{