Browse Source

mine towers can be gold repaired when mine not active

master
FatBoy-DOTC 1 year ago
parent
commit
1e5752736a
  1. 4
      src/engine/net/client/handlers/RepairBuildingMsgHandler.java

4
src/engine/net/client/handlers/RepairBuildingMsgHandler.java

@ -61,8 +61,8 @@ public class RepairBuildingMsgHandler extends AbstractClientMsgHandler { @@ -61,8 +61,8 @@ public class RepairBuildingMsgHandler extends AbstractClientMsgHandler {
//cannot repair mines during 24/7 activity.
if (targetBuilding.getBlueprint() != null && targetBuilding.getBlueprint().getBuildingGroup() == BuildingGroup.MINE) {
return;
if (targetBuilding.getBlueprint() != null && targetBuilding.getBlueprint().getBuildingGroup() == BuildingGroup.MINE && targetBuilding.assetIsProtected() == false) {
return;
}

Loading…
Cancel
Save