mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-11 03:41:23 +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 (!AntigriefManager.canCreateExplosion(player, event.getEntity().getLocation())) return;
|
||||||
if (breakblocks) {
|
if (breakblocks) {
|
||||||
if (!AntigriefManager.canBreakBlock(player, event.getEntity().getLocation().getWorld().getBlockAt(event.getEntity().getLocation())))
|
breakblocks = AntigriefManager.canBreakBlock(player, event.getEntity().getLocation().getWorld().getBlockAt(event.getEntity().getLocation()));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
event.getEntity().getWorld().createExplosion(event.getEntity().getLocation().getX(), event.getEntity().getLocation().getY(), event.getEntity().getLocation().getZ(), power, fire, breakblocks);
|
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