mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +09:00
x mark on save failed
This commit is contained in:
@@ -183,13 +183,7 @@ class WorldSavingThread(val disk: VirtualDisk, val outFile: File, val ingame: Te
|
||||
WriteSavegame.savingStatus = 255
|
||||
|
||||
|
||||
try {
|
||||
callback()
|
||||
}
|
||||
catch (e: Throwable) {
|
||||
e.printStackTrace()
|
||||
ingame.uiAutosaveNotifier.setAsError()
|
||||
}
|
||||
callback()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -208,12 +202,6 @@ class PlayerSavingThread(val disk: VirtualDisk, val outFile: File, val ingame: T
|
||||
WritePlayer(ingame.actorGamer, disk)
|
||||
VDUtil.dumpToRealMachine(disk, outFile)
|
||||
|
||||
try {
|
||||
callback()
|
||||
}
|
||||
catch (e: Throwable) {
|
||||
e.printStackTrace()
|
||||
ingame.uiAutosaveNotifier.setAsError()
|
||||
}
|
||||
callback()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user