mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +00:00
fix digital miner meta & avoid creating an itemstack for each filter
This commit is contained in:
1 parent
234bf2307a
commit
32af79f8f6
1 file changed
+3
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user