mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user