mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	Fixed Excavation not rewarding XP.
This commit is contained in:
		@@ -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);
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
@@ -40,6 +40,7 @@ public class Excavation {
 | 
			
		||||
        case SAND:
 | 
			
		||||
        case SOUL_SAND:
 | 
			
		||||
            return true;
 | 
			
		||||
 | 
			
		||||
        default:
 | 
			
		||||
            return false;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user