Fixed instability issues

This commit is contained in:
Auxilor 2020-10-20 15:44:54 +01:00
parent 64813ab8c3
commit 4639330ad0

View File

@ -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);