mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-20 06:14:44 +02:00
Remove no longer needed DualSupport classes, we crossed that road long ago.
This commit is contained in:
@ -15,7 +15,6 @@ import org.bukkit.material.SmoothBrick;
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
import com.gmail.nossr50.skills.repair.Repair;
|
||||
import com.gmail.nossr50.skills.salvage.Salvage;
|
||||
import com.gmail.nossr50.util.temp.DualSupport;
|
||||
|
||||
public final class BlockUtils {
|
||||
private BlockUtils() {}
|
||||
@ -65,10 +64,21 @@ public final class BlockUtils {
|
||||
case HOPPER:
|
||||
case TRAPPED_CHEST:
|
||||
case IRON_DOOR:
|
||||
case IRON_TRAPDOOR:
|
||||
case ACACIA_DOOR:
|
||||
case SPRUCE_DOOR:
|
||||
case BIRCH_DOOR:
|
||||
case JUNGLE_DOOR:
|
||||
case DARK_OAK_DOOR:
|
||||
case ACACIA_FENCE:
|
||||
case DARK_OAK_FENCE:
|
||||
case BIRCH_FENCE:
|
||||
case JUNGLE_FENCE:
|
||||
case ARMOR_STAND:
|
||||
return false;
|
||||
|
||||
default:
|
||||
return DualSupport.canActivateAbilities(blockState) && !isMcMMOAnvil(blockState) && !mcMMO.getModManager().isCustomAbilityBlock(blockState);
|
||||
return !isMcMMOAnvil(blockState) && !mcMMO.getModManager().isCustomAbilityBlock(blockState);
|
||||
}
|
||||
}
|
||||
|
||||
@ -163,10 +173,12 @@ public final class BlockUtils {
|
||||
case SANDSTONE:
|
||||
case STAINED_CLAY:
|
||||
case STONE:
|
||||
case PRISMARINE:
|
||||
case RED_SANDSTONE:
|
||||
return true;
|
||||
|
||||
default:
|
||||
return DualSupport.affectedBySuperBreaker(blockState) || isOre(blockState) || mcMMO.getModManager().isCustomMiningBlock(blockState);
|
||||
return isOre(blockState) || mcMMO.getModManager().isCustomMiningBlock(blockState);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user