Whoops, forgot to change a reference.

This commit is contained in:
gmcferrin 2013-01-08 14:23:21 -05:00
parent ccfe1181be
commit d2aa19e31f

View File

@ -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)))) {