prev saves sorting

This commit is contained in:
minjaesong
2023-09-21 17:37:15 +09:00
parent ee5e81e3f4
commit 3f8b1d4f49

View File

@@ -246,8 +246,8 @@ class UILoadManage(val full: UILoadSavegame) : UICanvas() {
private fun loadPrevGameInfo() {
val players = App.savegamePlayers[full.playerButtonSelected!!.playerUUID]!!.files
val worlds = App.savegameWorlds[full.playerButtonSelected!!.worldUUID]!!.files
val playerSavesInfo = players.map { it.getSavegameMeta() }
val worldSavesInfo = worlds.map { it.getSavegameMeta() }
val playerSavesInfo = players.map { it.getSavegameMeta() }.sortedByDescending { it.lastPlayTime }
val worldSavesInfo = worlds.map { it.getSavegameMeta() }.sortedByDescending { it.lastPlayTime }
sortedPlayerWorldList = getChronologicalPair(playerSavesInfo, worldSavesInfo)