mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 04:54:05 +09:00
trying to make savegame collecting faster
This commit is contained in:
@@ -520,7 +520,10 @@ class UIItemPlayerCells(
|
||||
private val isImported: Boolean
|
||||
|
||||
init {
|
||||
App.savegamePlayers[playerUUID]!!.loadable().getFile(SAVEGAMEINFO)?.bytes?.let {
|
||||
val loadable = App.savegamePlayers[playerUUID]!!.loadable()
|
||||
printdbg(this, "UUID: ${playerUUID}")
|
||||
printdbg(this, "File: ${loadable.diskFile.absolutePath}")
|
||||
loadable.getFile(SAVEGAMEINFO)?.bytes?.let {
|
||||
var lastPlayTime0 = 0L
|
||||
|
||||
JsonFetcher.readFromJsonString(ByteArray64Reader(it, Common.CHARSET)).forEachSiblings { name, value ->
|
||||
@@ -536,7 +539,7 @@ class UIItemPlayerCells(
|
||||
.atZone(TimeZone.getDefault().toZoneId())
|
||||
.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))
|
||||
|
||||
}
|
||||
} ?: throw Error("SAVEGAMEINFO not found on Skimmer:${loadable.diskFile}")
|
||||
|
||||
val savegamePair = SavegameCollectionPair(App.savegamePlayers[playerUUID], App.savegameWorlds[worldUUID])
|
||||
savegameStatus = savegamePair.status
|
||||
|
||||
Reference in New Issue
Block a user