From 34dce701423769b00f553e9e7da2b35d432e90e4 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 29 Nov 2023 20:09:07 +0200 Subject: [PATCH] Fixed bug - credit to @SomeTroglodyte --- core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt b/core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt index 4c95654e42..9e1aa34d84 100644 --- a/core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt +++ b/core/src/com/unciv/logic/automation/unit/WorkerAutomation.kt @@ -367,7 +367,7 @@ class WorkerAutomation( val isResourceTileWithoutResourceProvider = !tile.containsGreatImprovement() && tile.hasViewableResource(civInfo) - && !tile.tileResource.isImprovedBy(tile.improvement!!) + && (tile.improvement == null || !tile.tileResource.isImprovedBy(tile.improvement!!)) if (anyImprovementIsOk || isResourceTileWithoutResourceProvider) { val chosenImprovement = chooseImprovement(unit, tile)