for (ItemStack drop : block.getDrops(holding)) {
player.getInventory().addItem(drop);
}
}
// STEP_SOUND actually is the block break particles
world.playEffectExceptTo(block.getLocation(), Effect.STEP_SOUND, block.getTypeId(), 64, player);
block.setType(Material.AIR);
} else if (revert) {
// replace the block that wasn't really dug
BlockPlacementHandler.revert(player, block);
}