From 0a798aec30ed8fa5650e0226f911634fa4532ded Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Fri, 17 Aug 2012 01:27:41 -0300 Subject: [PATCH 1/2] Made gigadrill not dupe if event is cancelled --- .../java/com/gmail/nossr50/skills/gathering/Excavation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3020a24c8..5d074bd4a 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Excavation.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Excavation.java @@ -124,7 +124,7 @@ public class Excavation { public static void gigaDrillBreaker(Player player, Block block) { 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); From 740c1131ea8b171e7ce28c9395e03bbcbadd0763 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Fri, 17 Aug 2012 01:28:28 -0300 Subject: [PATCH 2/2] Made superbreaker not dupe if event is cancelled --- src/main/java/com/gmail/nossr50/skills/gathering/Mining.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Mining.java b/src/main/java/com/gmail/nossr50/skills/gathering/Mining.java index eed34200b..8c7cf099d 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Mining.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Mining.java @@ -385,7 +385,7 @@ public class Mining { case NETHERRACK: case SANDSTONE: case STONE: - if (mcMMO.placeStore.isTrue(block)) { + if (mcMMO.placeStore.isTrue(block) || Misc.blockBreakSimulate(block, player, true)) { return; }