stupid error fixed (!=)

This commit is contained in:
2022-06-05 17:36:30 -05:00
parent cd55105b28
commit 45234d24ca
@@ -57,7 +57,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler {
if (!BuildingManager.PlayerCanControlNotOwner(building, pc)) if (!BuildingManager.PlayerCanControlNotOwner(building, pc))
return true; return true;
Bane bane = city.getBane(); Bane bane = city.getBane();
if(bane.getSiegePhase() != Enum.SiegePhase.WAR && bane != null) { if(bane.getSiegePhase() == Enum.SiegePhase.WAR && bane != null) {
ErrorPopupMsg.sendErrorPopup(pc, 171); ErrorPopupMsg.sendErrorPopup(pc, 171);
return true; return true;
} }