Fixed Excavation not rewarding XP.

This commit is contained in:
GJ 2012-03-18 21:12:29 -04:00
parent 8f2c424657
commit 4f0c55460d
2 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,7 @@ public class mcBlockListener implements Listener {
* EXCAVATION * 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)) { if (LoadProperties.excavationRequiresShovel && ItemChecks.isShovel(inhand)) {
Excavation.excavationProcCheck(block, player); Excavation.excavationProcCheck(block, player);
} }

View File

@ -40,6 +40,7 @@ public class Excavation {
case SAND: case SAND:
case SOUL_SAND: case SOUL_SAND:
return true; return true;
default: default:
return false; return false;
} }