From 45234d24ca418a52a016ed925d019947a42e232b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 5 Jun 2022 17:36:30 -0500 Subject: [PATCH] stupid error fixed (!=) --- src/engine/net/client/handlers/DestroyBuildingHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/DestroyBuildingHandler.java b/src/engine/net/client/handlers/DestroyBuildingHandler.java index 4de1f37b..335f5e57 100644 --- a/src/engine/net/client/handlers/DestroyBuildingHandler.java +++ b/src/engine/net/client/handlers/DestroyBuildingHandler.java @@ -57,7 +57,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler { if (!BuildingManager.PlayerCanControlNotOwner(building, pc)) return true; Bane bane = city.getBane(); -if(bane.getSiegePhase() != Enum.SiegePhase.WAR && bane != null) { +if(bane.getSiegePhase() == Enum.SiegePhase.WAR && bane != null) { ErrorPopupMsg.sendErrorPopup(pc, 171); return true; }