seemingly working world teleporter (no saving... ui tho)

This commit is contained in:
minjaesong
2023-07-03 00:10:46 +09:00
parent 9c396e7b8d
commit fcaf4c97f1
7 changed files with 37 additions and 14 deletions

View File

@@ -78,9 +78,10 @@ class FixtureWorldPortal : Electric {
val jobAfterSave: () -> Unit
if (it.worldDiskToLoad != null) {
UILoadGovernor.worldDisk = it.worldDiskToLoad
UILoadGovernor.playerDisk = App.savegamePlayers[player.uuid]!!.getBaseFile()
UILoadGovernor.playerDisk = App.savegamePlayers[player.uuid]!!.files[0]
jobAfterSave = {
LoadSavegame(UILoadGovernor.worldDisk!!, UILoadGovernor.playerDisk)
UILoadGovernor.playerDisk!!.rebuild()
LoadSavegame(UILoadGovernor.playerDisk!!, UILoadGovernor.worldDisk!!)
}
}
// create new