From 3c22c867f011228411d0fa1c2c414fba6e07b9bc Mon Sep 17 00:00:00 2001 From: Gualdimar Date: Fri, 10 Feb 2023 02:52:57 +0200 Subject: [PATCH] Fixed selecting an improvement switched to another unit even if the setting is disabled (#8645) --- core/src/com/unciv/ui/worldscreen/unit/actions/UnitActions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/worldscreen/unit/actions/UnitActions.kt b/core/src/com/unciv/ui/worldscreen/unit/actions/UnitActions.kt index 2443b62815..342fb6ee1f 100644 --- a/core/src/com/unciv/ui/worldscreen/unit/actions/UnitActions.kt +++ b/core/src/com/unciv/ui/worldscreen/unit/actions/UnitActions.kt @@ -376,7 +376,7 @@ object UnitActions { actionList += UnitAction(UnitActionType.ConstructImprovement, isCurrentAction = unit.currentTile.hasImprovementInProgress(), action = { - worldScreen.game.pushScreen(ImprovementPickerScreen(tile, unit) { worldScreen.switchToNextUnit() }) + worldScreen.game.pushScreen(ImprovementPickerScreen(tile, unit) { if (UncivGame.Current.settings.autoUnitCycle) worldScreen.switchToNextUnit() }) }.takeIf { couldConstruct } ) }