Skip to content

Commit

Permalink
Add Mycelium to vanilla overrides, implements #407
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgorithmX2 committed Jul 12, 2018
1 parent bbafcab commit 1d6b8db
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -16,6 +16,7 @@
import net.minecraft.block.BlockGlowstone;
import net.minecraft.block.BlockGrass;
import net.minecraft.block.BlockIce;
import net.minecraft.block.BlockMycelium;
import net.minecraft.block.BlockSlime;
import net.minecraft.block.BlockSnowBlock;
import net.minecraft.block.BlockStainedGlass;
Expand Down Expand Up @@ -210,7 +211,7 @@ public static boolean supportsBlock(
final BlockBitInfo info = BlockBitInfo.createFromState( state );

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

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

0 comments on commit 1d6b8db

Please sign in to comment.