mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 10:54:19 -04:00
Fixed selecting an improvement switched to another unit even if the setting is disabled (#8645)
This commit is contained in:
parent
49615f3bd1
commit
3c22c867f0
@ -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 }
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user