From 4639330ad0138b0130c53277300fc11d55e3942a Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 20 Oct 2020 15:44:54 +0100 Subject: [PATCH] Fixed instability issues --- .../enchantments/ecoenchants/special/Instability.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Instability.java b/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Instability.java index 59f980d5..9c701eaa 100644 --- a/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Instability.java +++ b/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Instability.java @@ -41,8 +41,7 @@ public final class Instability extends EcoEnchant { if (!AntigriefManager.canCreateExplosion(player, event.getEntity().getLocation())) return; if (breakblocks) { - if (!AntigriefManager.canBreakBlock(player, event.getEntity().getLocation().getWorld().getBlockAt(event.getEntity().getLocation()))) - return; + breakblocks = AntigriefManager.canBreakBlock(player, event.getEntity().getLocation().getWorld().getBlockAt(event.getEntity().getLocation())); } event.getEntity().getWorld().createExplosion(event.getEntity().getLocation().getX(), event.getEntity().getLocation().getY(), event.getEntity().getLocation().getZ(), power, fire, breakblocks);