mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Whoops, forgot to change a reference.
This commit is contained in:
parent
ccfe1181be
commit
d2aa19e31f
@ -357,15 +357,17 @@ public class BlockListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (profile.getAbilityMode(AbilityType.SUPER_BREAKER) && Skills.triggerCheck(player, block, AbilityType.SUPER_BREAKER)) {
|
else if (profile.getAbilityMode(AbilityType.SUPER_BREAKER) && Skills.triggerCheck(player, block, AbilityType.SUPER_BREAKER)) {
|
||||||
|
MiningManager manager = new MiningManager(player);
|
||||||
|
|
||||||
if (configInstance.getMiningRequiresTool()) {
|
if (configInstance.getMiningRequiresTool()) {
|
||||||
if (ItemChecks.isPickaxe(inHand)) {
|
if (ItemChecks.isPickaxe(inHand)) {
|
||||||
event.setInstaBreak(true);
|
event.setInstaBreak(true);
|
||||||
Mining.superBreakerBlockCheck(player, block);
|
manager.superBreakerBlockCheck(block);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
event.setInstaBreak(true);
|
event.setInstaBreak(true);
|
||||||
Mining.superBreakerBlockCheck(player, block);
|
manager.superBreakerBlockCheck(block);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (profile.getSkillLevel(SkillType.WOODCUTTING) >= LEAF_BLOWER_LEVEL && (material.equals(Material.LEAVES) || (configInstance.getBlockModsEnabled() && ModChecks.isCustomLeafBlock(block)))) {
|
else if (profile.getSkillLevel(SkillType.WOODCUTTING) >= LEAF_BLOWER_LEVEL && (material.equals(Material.LEAVES) || (configInstance.getBlockModsEnabled() && ModChecks.isCustomLeafBlock(block)))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user