mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 20:14:05 +09:00
seemingly working world teleporter (no saving... ui tho)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user