From 1e5752736ab8853f244697c9b77b101a3593f069 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 29 Jul 2023 21:37:36 -0500 Subject: [PATCH] mine towers can be gold repaired when mine not active --- src/engine/net/client/handlers/RepairBuildingMsgHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/net/client/handlers/RepairBuildingMsgHandler.java b/src/engine/net/client/handlers/RepairBuildingMsgHandler.java index 5cb747a8..e5df0a1a 100644 --- a/src/engine/net/client/handlers/RepairBuildingMsgHandler.java +++ b/src/engine/net/client/handlers/RepairBuildingMsgHandler.java @@ -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; }