SuperBreaker will always activate if the fastest tool for the block is a PickAxe

Fixes #4362
This commit is contained in:
nossr50
2020-12-31 16:41:08 -08:00
parent c408c7d057
commit 56b376eb54
3 changed files with 192 additions and 1 deletions

View File

@@ -141,10 +141,13 @@ public final class BlockUtils {
* otherwise
*/
public static Boolean affectedBySuperBreaker(BlockState blockState) {
if(mcMMO.getMaterialMapStore().isIntendedToolPickaxe(blockState.getType()))
return true;
if (ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.MINING, blockState.getBlockData()))
return true;
return isOre(blockState) || mcMMO.getModManager().isCustomMiningBlock(blockState);
return mcMMO.getModManager().isCustomMiningBlock(blockState);
}
/**