From c7cf4d6d76f26153424f69bd615d03e8a5325504 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 15 Aug 2021 14:23:34 +0100 Subject: [PATCH] Fixed blast mining durability bug --- .../enchantments/ecoenchants/normal/BlastMining.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/BlastMining.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/BlastMining.java index 12e14a84..3995ad7c 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/BlastMining.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/BlastMining.java @@ -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; }