Added missing blocks for control statements

This commit is contained in:
yueh 2015-08-06 18:51:55 +02:00
parent 9c8deac9de
commit 8234c6dbb5

View file

@ -57,7 +57,9 @@ public class AEBaseSlabBlock extends BlockSlab implements IAEFeature
this.setStepSound( block.stepSound );
this.useNeighborBrightness = true;
if( !field_150004_a )
{
this.doubleSlabs = new AEBaseSlabBlock( block, meta, features, true, name + ".double" ).setSlabs( this );
}
this.features = !field_150004_a ? new SlabBlockFeatureHandler( features, this ) : null;
}
@ -118,9 +120,13 @@ public class AEBaseSlabBlock extends BlockSlab implements IAEFeature
AEBaseSlabBlock block = (AEBaseSlabBlock) world.getBlock( x, y, z );
if( block == null )
{
return null;
}
if( block.field_150004_a )
{
block = this.slabs;
}
int meta = world.getBlockMetadata( x, y, z ) & 7;
return new ItemStack( block, 1, meta );