Fixed blast mining durability bug

This commit is contained in:
Auxilor 2021-08-15 14:23:34 +01:00
parent 23a1a9b7ba
commit c7cf4d6d76

View File

@ -8,6 +8,7 @@ import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.meta.EnchantmentType;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.Particle;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
@ -75,6 +76,10 @@ public class BlastMining extends EcoEnchant {
continue;
}
if (block1.getType() == Material.AIR) {
continue;
}
if (!AntigriefManager.canBreakBlock(player, block1)) {
continue;
}