cleaned up pickaxe harvest check
@@ -156,8 +156,7 @@ public class ItemModularHandheld extends ItemModular {
@Override
public boolean canHarvestBlock(IBlockState blockState, ItemStack itemStack) {
- Material material = blockState.getMaterial();
- if (Material.ROCK.equals(material) || Material.IRON.equals(material) || Material.ANVIL.equals(material)) {
+ if (pickaxeMaterials.contains(blockState.getMaterial())) {
return getHarvestLevel(itemStack, "pickaxe", null, null) >= 0;
}
return false;
