mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
Fixed blast mining durability bug
This commit is contained in:
parent
23a1a9b7ba
commit
c7cf4d6d76
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user