misc refactoring

This commit is contained in:
nossr50 2024-07-27 13:53:36 -07:00
parent a0a9d98c80
commit c6791c81cf

View File

@ -142,7 +142,9 @@ public class MiningManager extends SkillManager {
Block targetBlock = player.getTargetBlock(BlockUtils.getTransparentBlocks(), BlastMining.MAXIMUM_REMOTE_DETONATION_DISTANCE);
//Blast mining cooldown check needs to be first so the player can be messaged
if (!blastMiningCooldownOver() || targetBlock.getType() != Material.TNT || !EventUtils.simulateBlockBreak(targetBlock, player)) {
if (!blastMiningCooldownOver()
|| targetBlock.getType() != Material.TNT
|| !EventUtils.simulateBlockBreak(targetBlock, player)) {
return;
}