mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-05 02:41:24 +01:00
Fixed instability issues
This commit is contained in:
parent
64813ab8c3
commit
4639330ad0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user