From 4f0c55460d8e3c4b2932b5d811a8d1ea25be04fc Mon Sep 17 00:00:00 2001 From: GJ Date: Sun, 18 Mar 2012 21:12:29 -0400 Subject: [PATCH] Fixed Excavation not rewarding XP. --- src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java | 2 +- src/main/java/com/gmail/nossr50/skills/Excavation.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java b/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java index c52a965a2..73b5cb4e6 100644 --- a/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java @@ -176,7 +176,7 @@ public class mcBlockListener implements Listener { * EXCAVATION */ - if (Excavation.canBeGigaDrillBroken(mat) && mcPermissions.getInstance().excavation(player) && block.hasMetadata("mcmmoPlacedBlock")) { + if (Excavation.canBeGigaDrillBroken(mat) && mcPermissions.getInstance().excavation(player) && !block.hasMetadata("mcmmoPlacedBlock")) { if (LoadProperties.excavationRequiresShovel && ItemChecks.isShovel(inhand)) { Excavation.excavationProcCheck(block, player); } diff --git a/src/main/java/com/gmail/nossr50/skills/Excavation.java b/src/main/java/com/gmail/nossr50/skills/Excavation.java index 4f26b6628..346f310a3 100644 --- a/src/main/java/com/gmail/nossr50/skills/Excavation.java +++ b/src/main/java/com/gmail/nossr50/skills/Excavation.java @@ -40,6 +40,7 @@ public class Excavation { case SAND: case SOUL_SAND: return true; + default: return false; }