From 45f94c736a82726e10c94c4e754ee40c9915ddc5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 14 Jan 2023 14:29:33 -0500 Subject: [PATCH] Excess whitespace. --- .../net/client/handlers/PlaceAssetMsgHandler.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/engine/net/client/handlers/PlaceAssetMsgHandler.java b/src/engine/net/client/handlers/PlaceAssetMsgHandler.java index d7b12aef..28c59e97 100644 --- a/src/engine/net/client/handlers/PlaceAssetMsgHandler.java +++ b/src/engine/net/client/handlers/PlaceAssetMsgHandler.java @@ -398,8 +398,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { HashSet awoList = WorldGrid.getObjectsInRangePartial(serverCity, 1000, MBServerStatics.MASK_BUILDING); - - for (AbstractWorldObject awo : awoList) { Building building = (Building)awo; @@ -416,7 +414,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { if (building.getGuild().isErrant()) continue; - if (!building.getGuild().equals(serverCity.getGuild()) && !building.getGuild().equals(serverCity.getBane().getOwner().getGuild())) continue; @@ -430,7 +427,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { if (building.getGuild().equals(serverCity.getBane().getOwner().getGuild())) numAttackerBuildings++; - } // Validate bane limits on siege assets @@ -441,13 +437,12 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { return true; } + if (serverCity.getBane() != null) if ((player.getGuild().equals(serverCity.getGuild())) && (numDefenderBuildings >= serverCity.getTOL().getRank())) { return true; } - - // passes validation: can assign auto-protection to war asset if (serverCity.getBane() != null) @@ -455,15 +450,9 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { if (player.getGuild().equals(serverCity.getBane().getOwner().getGuild())) return true; - - - - - siegeBuilding.setProtectionState(ProtectionState.PROTECTED); // No bane placed. We're done! - return true; }