Merge remote-tracking branch 'origin/master' into master

This commit is contained in:
Auxilor 2021-03-21 19:00:30 +00:00
commit ef7189c89e
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import com.willfp.eco.util.integrations.antigrief.AntigriefManager;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.meta.EnchantmentType; import com.willfp.ecoenchants.enchantments.meta.EnchantmentType;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.Particle; import org.bukkit.Particle;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@ -31,6 +32,10 @@ public class BlastMining extends EcoEnchant {
return; return;
} }
if (!EnchantmentUtils.passedChance(this, level)) {
return;
}
if (player.isSneaking() && this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "disable-on-sneak")) { if (player.isSneaking() && this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "disable-on-sneak")) {
return; return;
} }

View File

@ -20,8 +20,10 @@ general-config:
conflicts: conflicts:
- drill - drill
- vein - vein
maximum-level: 1
config: config:
chance-per-level: 100
disable-on-sneak: true disable-on-sneak: true
enable-sound: true # Play explosion sound enable-sound: true # Play explosion sound
hardness-check: true # Only break blocks with hardness less than or equal to first block hardness-check: true # Only break blocks with hardness less than or equal to first block