Skip to content

Commit

Permalink
Require Blocks to have an Item, in vanilla this blacklists Lit Redsto…
Browse files Browse the repository at this point in the history
…ne Lamps, I doubt it will affect mod space much.
  • Loading branch information
AlgorithmX2 committed Oct 3, 2016
1 parent b5a3224 commit e3ac64f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -210,6 +210,7 @@ public static boolean supportsBlock(
final BlockBitInfo info = BlockBitInfo.createFromState( state );

boolean hasBehavior = ( blk.hasTileEntity( state ) || blk.getTickRandomly() ) && blkClass != BlockGrass.class && blkClass != BlockIce.class;
final boolean hasItem = Item.getItemFromBlock( blk ) != null;

final boolean supportedMaterial = ChiselsAndBits.getBlocks().getConversion( state ) != null;

Expand All @@ -227,7 +228,7 @@ public static boolean supportsBlock(
final boolean result = ChiselsAndBits.getConfig().isEnabled( blkClass.getName() );
supportedBlocks.put( blk, result );

if ( result )
if ( result && hasItem )
{
stateBitInfo.put( state, info );
}
Expand Down

0 comments on commit e3ac64f

Please sign in to comment.