mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-25 22:59:12 +07:00
Can now load maps with extra lines at the end, as found in some mods in the wild
This commit is contained in:
parent
9266ddc5d0
commit
2ea97edb92
@ -16,7 +16,7 @@ object MapSaver {
|
||||
|
||||
fun mapFromSavedString(mapString: String, checkSizeErrors: Boolean = true): TileMap {
|
||||
val unzippedJson = try {
|
||||
Gzip.unzip(mapString)
|
||||
Gzip.unzip(mapString.trim())
|
||||
} catch (ex: Exception) {
|
||||
mapString
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user