Skip to content

Commit

Permalink
autoformat fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
squidicuzz committed Apr 16, 2022
1 parent 22f0ae4 commit c59058e
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,19 +334,15 @@ public void handleExplosion(final EntityExplodeEvent event, final Location deton
&& !MaterialManager.getInstance().getBypassFluidProtection(targetLoc.getBlock().getType().name(), targetLoc.getBlock().getData())
&& !detectedSand) {
blocksIgnored.add(targetLoc.getBlock());
if (blocksDestroyed.contains(targetLoc.getBlock())) {
blocksDestroyed.remove(targetLoc.getBlock());
}
blocksDestroyed.remove(targetLoc.getBlock());
continue;
}

if (ConfigManager.getInstance().getFluidsProtectIndestructibles() && !detonatorLoc.getBlock().isLiquid()
&& MaterialManager.getInstance().contains(targetLoc.getBlock().getType().name(), targetLoc.getBlock().getData())) {
if (Util.isNearLiquid(targetLoc) && distance > 1) {
blocksIgnored.add(targetLoc.getBlock());
if (blocksDestroyed.contains(targetLoc.getBlock())) {
blocksDestroyed.remove(targetLoc.getBlock());
}
blocksDestroyed.remove(targetLoc.getBlock());
continue;
}
}
Expand Down

0 comments on commit c59058e

Please sign in to comment.