mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 07:48:31 +07:00
4.5.0-patch3
Fixed 'unitsToRemove' error
This commit is contained in:
@ -3,8 +3,8 @@ package com.unciv.build
|
||||
object BuildConfig {
|
||||
const val kotlinVersion = "1.8.0"
|
||||
const val appName = "Unciv"
|
||||
const val appCodeNumber = 821
|
||||
const val appVersion = "4.5.0-patch2"
|
||||
const val appCodeNumber = 822
|
||||
const val appVersion = "4.5.0-patch3"
|
||||
|
||||
const val gdxVersion = "1.11.0"
|
||||
const val roboVMVersion = "2.3.1"
|
||||
|
@ -162,7 +162,7 @@ class Ruleset {
|
||||
cityStateTypes.putAll(ruleset.cityStateTypes)
|
||||
ruleset.modOptions.unitsToRemove
|
||||
.flatMap { unitToRemove ->
|
||||
units.filter { it.value.matchesFilter(unitToRemove) }.keys
|
||||
units.filter { it.apply { value.ruleset=this@Ruleset }.value.matchesFilter(unitToRemove) }.keys
|
||||
}.toSet().forEach {
|
||||
units.remove(it)
|
||||
}
|
||||
|
Reference in New Issue
Block a user