From 89681cbe3e29038b242880839350b96839febfef Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 10 Aug 2023 19:43:37 -0500 Subject: [PATCH] non-active mines can be fixed by gold --- .../net/client/handlers/RepairBuildingMsgHandler.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/engine/net/client/handlers/RepairBuildingMsgHandler.java b/src/engine/net/client/handlers/RepairBuildingMsgHandler.java index e5df0a1a..393c54be 100644 --- a/src/engine/net/client/handlers/RepairBuildingMsgHandler.java +++ b/src/engine/net/client/handlers/RepairBuildingMsgHandler.java @@ -12,10 +12,7 @@ import engine.net.client.ClientConnection; import engine.net.client.msg.ClientNetMsg; import engine.net.client.msg.RepairBuildingMsg; import engine.net.client.msg.UpdateObjectMsg; -import engine.objects.Building; -import engine.objects.City; -import engine.objects.PlayerCharacter; -import engine.objects.Zone; +import engine.objects.*; /* * @Author: @@ -61,7 +58,7 @@ public class RepairBuildingMsgHandler extends AbstractClientMsgHandler { //cannot repair mines during 24/7 activity. - if (targetBuilding.getBlueprint() != null && targetBuilding.getBlueprint().getBuildingGroup() == BuildingGroup.MINE && targetBuilding.assetIsProtected() == false) { + if (targetBuilding.getBlueprint() != null && targetBuilding.getBlueprint().getBuildingGroup() == BuildingGroup.MINE && Mine.getMineFromTower(targetBuilding.getObjectUUID()).isActive == true) { return; }