Browse Source

stupid error fixed (!=)

pull/13/head
FatBoy-DOTC 2 years ago
parent
commit
45234d24ca
  1. 2
      src/engine/net/client/handlers/DestroyBuildingHandler.java

2
src/engine/net/client/handlers/DestroyBuildingHandler.java

@ -57,7 +57,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler { @@ -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;
}

Loading…
Cancel
Save