fix: renaming player would cause savegame load to fail as renaming would 'prettify' the json and the savegame loader was not expecting it

This commit is contained in:
minjaesong
2024-01-29 16:15:13 +09:00
parent 9c2b2c6a13
commit 8aedd7c78a

View File

@@ -124,7 +124,7 @@ object LoadSavegame {
operator fun invoke(diskPair: DiskPair) = invoke(diskPair.player, diskPair.world)
private val getGenver = Regex("""(?<="genver":)[0-9]+""")
private val getGenver = Regex("""(?<="genver" ?: ?)[0-9]+""")
/**
* @param playerDisk DiskSkimmer representing the Player.