Fix for Super Breaker & Giga Drill Breaker double/triple drops.

This commit is contained in:
gmcferrin 2013-01-08 14:56:31 -05:00
parent fadec1a846
commit 7c211fa50c
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ public class Excavation {
Skills.abilityDurabilityLoss(player.getItemInHand(), Config.getInstance().getAbilityToolDamage()); 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); FakePlayerAnimationEvent armswing = new FakePlayerAnimationEvent(player);
mcMMO.p.getServer().getPluginManager().callEvent(armswing); mcMMO.p.getServer().getPluginManager().callEvent(armswing);

View File

@ -59,7 +59,7 @@ public class MiningManager {
* @param block The block being affected * @param block The block being affected
*/ */
public void superBreakerBlockCheck(Block block) { 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; return;
} }