mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 21:03:15 -04:00
Fixed "don't allow era select" if the game has no techs
This commit is contained in:
parent
860989571a
commit
6637ee73a4
@ -408,7 +408,7 @@ class GameOptionsTable(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun Table.addEraSelectBox() {
|
private fun Table.addEraSelectBox() {
|
||||||
if (ruleset.technologies.isEmpty()) return // mod with no techs
|
if (ruleset.eras.isEmpty()) return // mod with no techs
|
||||||
val eras = ruleset.eras.keys
|
val eras = ruleset.eras.keys
|
||||||
addSelectBox("{Starting Era}:", eras, gameParameters.startingEra)
|
addSelectBox("{Starting Era}:", eras, gameParameters.startingEra)
|
||||||
{ gameParameters.startingEra = it; null }
|
{ gameParameters.startingEra = it; null }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user