fix digital miner meta & avoid creating an itemstack for each filter
@@ -224,7 +224,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
IBlockState state = coord.getBlockState(world);
Block block = state.getBlock();
- int meta = block.getMetaFromState(state);
+ int meta = block.damageDropped(state);
if(block == null || coord.isAirBlock(world))
{
@@ -241,10 +241,11 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
}
boolean hasFilter = false;
+ ItemStack is = new ItemStack(block, 1, meta);
for(MinerFilter filter : filters)
{
- if(filter.canFilter(new ItemStack(block, 1, meta)))
+ if(filter.canFilter(is))
{
hasFilter = true;
break;
