From d2aa19e31f6abab053bcc543e79228f5a65f6f5b Mon Sep 17 00:00:00 2001 From: gmcferrin Date: Tue, 8 Jan 2013 14:23:21 -0500 Subject: [PATCH] Whoops, forgot to change a reference. --- .../java/com/gmail/nossr50/listeners/BlockListener.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java index ac126bc7e..22c6fd692 100644 --- a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java @@ -357,15 +357,17 @@ public class BlockListener implements Listener { } } else if (profile.getAbilityMode(AbilityType.SUPER_BREAKER) && Skills.triggerCheck(player, block, AbilityType.SUPER_BREAKER)) { + MiningManager manager = new MiningManager(player); + if (configInstance.getMiningRequiresTool()) { if (ItemChecks.isPickaxe(inHand)) { event.setInstaBreak(true); - Mining.superBreakerBlockCheck(player, block); + manager.superBreakerBlockCheck(block); } } else { 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)))) {