mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
the file io is cursed
This commit is contained in:
@@ -77,11 +77,11 @@ class FixtureWorldPortal : Electric {
|
||||
// load existing
|
||||
val jobAfterSave: () -> Unit
|
||||
if (it.worldDiskToLoad != null) {
|
||||
UILoadGovernor.worldDisk = it.worldDiskToLoad
|
||||
UILoadGovernor.playerDisk = App.savegamePlayers[player.uuid]!!.files[0]
|
||||
jobAfterSave = {
|
||||
UILoadGovernor.playerDisk!!.rebuild()
|
||||
LoadSavegame(UILoadGovernor.playerDisk!!, UILoadGovernor.worldDisk!!)
|
||||
LoadSavegame(
|
||||
App.savegamePlayers[player.uuid]!!.files[0],
|
||||
it.worldDiskToLoad
|
||||
)
|
||||
}
|
||||
}
|
||||
// create new
|
||||
|
||||
Reference in New Issue
Block a user