mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 22:26:46 +01:00
misc refactoring
This commit is contained in:
parent
a0a9d98c80
commit
c6791c81cf
@ -142,7 +142,9 @@ public class MiningManager extends SkillManager {
|
|||||||
Block targetBlock = player.getTargetBlock(BlockUtils.getTransparentBlocks(), BlastMining.MAXIMUM_REMOTE_DETONATION_DISTANCE);
|
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
|
//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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user