Resolved #1598 - we now save map options for new games started

This commit is contained in:
Yair Morgenstern 2020-01-02 19:37:40 +02:00
parent 52165e692f
commit 73816dd470
3 changed files with 7 additions and 5 deletions

View file

@ -3,11 +3,11 @@ buildscript {
ext.kotlinVersion = '1.3.50' ext.kotlinVersion = '1.3.50'
repositories { repositories {
// Chinese mirrors for quicker loading for chinese devs // Chinese mirrors for quicker loading for chinese devs - uncomment if you're chinese
maven{ url 'https://maven.aliyun.com/repository/jcenter'} // maven{ url 'https://maven.aliyun.com/repository/jcenter'}
maven{ url 'https://maven.aliyun.com/repository/google'} // maven{ url 'https://maven.aliyun.com/repository/google'}
maven{ url 'https://maven.aliyun.com/repository/gradle-plugin'} // maven{ url 'https://maven.aliyun.com/repository/gradle-plugin'}
maven{ url 'https://maven.aliyun.com/repository/public'} // maven{ url 'https://maven.aliyun.com/repository/public'}
google() google()
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()

View file

@ -25,6 +25,7 @@ class TileMap {
fun clone(): TileMap { fun clone(): TileMap {
val toReturn = TileMap() val toReturn = TileMap()
toReturn.tileList.addAll(tileList.map { it.clone() }) toReturn.tileList.addAll(tileList.map { it.clone() })
toReturn.mapParameters = mapParameters
return toReturn return toReturn
} }

View file

@ -223,6 +223,7 @@ class NewGameScreenOptionsTable(val newGameScreen: NewGameScreen, val updatePlay
fun addModCheckboxes() { fun addModCheckboxes() {
val modFolders = Gdx.files.local("mods") val modFolders = Gdx.files.local("mods")
if(!modFolders.exists()) return
val loadableMods = ArrayList<Ruleset>() val loadableMods = ArrayList<Ruleset>()
for (modFolder in modFolders.list()) { for (modFolder in modFolders.list()) {