From 7c211fa50c1cb318ce735a6783244c40e823d0b4 Mon Sep 17 00:00:00 2001 From: gmcferrin Date: Tue, 8 Jan 2013 14:56:31 -0500 Subject: [PATCH] Fix for Super Breaker & Giga Drill Breaker double/triple drops. --- .../java/com/gmail/nossr50/skills/gathering/Excavation.java | 2 +- .../java/com/gmail/nossr50/skills/mining/MiningManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Excavation.java b/src/main/java/com/gmail/nossr50/skills/gathering/Excavation.java index 39e62042d..04704e635 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Excavation.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Excavation.java @@ -133,7 +133,7 @@ public class Excavation { Skills.abilityDurabilityLoss(player.getItemInHand(), Config.getInstance().getAbilityToolDamage()); - if (!mcMMO.placeStore.isTrue(block) && !Misc.blockBreakSimulate(block, player, true)) { + if (!mcMMO.placeStore.isTrue(block) && Misc.blockBreakSimulate(block, player, true)) { FakePlayerAnimationEvent armswing = new FakePlayerAnimationEvent(player); mcMMO.p.getServer().getPluginManager().callEvent(armswing); diff --git a/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java b/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java index 87cfaab48..34b853bdd 100644 --- a/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java @@ -59,7 +59,7 @@ public class MiningManager { * @param block The block being affected */ public void superBreakerBlockCheck(Block block) { - if (mcMMO.placeStore.isTrue(block) || Misc.blockBreakSimulate(block, player, true)) { + if (mcMMO.placeStore.isTrue(block) || !Misc.blockBreakSimulate(block, player, true)) { return; }