Optimized Artifacts and Blast Mining

This commit is contained in:
Auxilor 2021-11-12 18:14:15 +00:00
parent 6478dd853b
commit 20c9f4bb0e
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public class BlastMining extends EcoEnchant {
}
Block block1 = block.getWorld().getBlockAt(block.getLocation().clone().add(x, y, z));
if (this.getConfig().getStrings(EcoEnchants.CONFIG_LOCATION + "blacklisted-blocks").contains(block1.getType().name().toLowerCase())) {
if (this.getConfig().getStrings(EcoEnchants.CONFIG_LOCATION + "blacklisted-blocks", false).contains(block1.getType().name().toLowerCase())) {
continue;
}

View File

@ -79,7 +79,7 @@ public abstract class Artifact extends EcoEnchant {
@NotNull final Block block,
final int level,
@NotNull final BlockBreakEvent event) {
if (!this.getConfig().getStrings(EcoEnchants.CONFIG_LOCATION + "on-blocks").contains(block.getType().name().toLowerCase())) {
if (!this.getConfig().getStrings(EcoEnchants.CONFIG_LOCATION + "on-blocks", false).contains(block.getType().name().toLowerCase())) {
return;
}