Skip to content

Commit 73816dd

Browse files
committed
Resolved #1598 - we now save map options for new games started
1 parent 52165e6 commit 73816dd

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ buildscript {
33
ext.kotlinVersion = '1.3.50'
44

55
repositories {
6-
// Chinese mirrors for quicker loading for chinese devs
7-
maven{ url 'https://maven.aliyun.com/repository/jcenter'}
8-
maven{ url 'https://maven.aliyun.com/repository/google'}
9-
maven{ url 'https://maven.aliyun.com/repository/gradle-plugin'}
10-
maven{ url 'https://maven.aliyun.com/repository/public'}
6+
// Chinese mirrors for quicker loading for chinese devs - uncomment if you're chinese
7+
// maven{ url 'https://maven.aliyun.com/repository/jcenter'}
8+
// maven{ url 'https://maven.aliyun.com/repository/google'}
9+
// maven{ url 'https://maven.aliyun.com/repository/gradle-plugin'}
10+
// maven{ url 'https://maven.aliyun.com/repository/public'}
1111
google()
1212
mavenLocal()
1313
mavenCentral()

core/src/com/unciv/logic/map/TileMap.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class TileMap {
2525
fun clone(): TileMap {
2626
val toReturn = TileMap()
2727
toReturn.tileList.addAll(tileList.map { it.clone() })
28+
toReturn.mapParameters = mapParameters
2829
return toReturn
2930
}
3031

core/src/com/unciv/ui/newgamescreen/NewGameScreenOptionsTable.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ class NewGameScreenOptionsTable(val newGameScreen: NewGameScreen, val updatePlay
223223
fun addModCheckboxes() {
224224

225225
val modFolders = Gdx.files.local("mods")
226+
if(!modFolders.exists()) return
226227
val loadableMods = ArrayList<Ruleset>()
227228

228229
for (modFolder in modFolders.list()) {

0 commit comments

Comments
 (0)