mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
fixed a bug where a dynamic item would not get saved/loaded at all
This commit is contained in:
@@ -133,9 +133,10 @@ class TitleScreen(batch: SpriteBatch) : IngameInstance(batch) {
|
||||
|
||||
|
||||
try {
|
||||
val reader = java.io.FileReader(ModMgr.getFile("basegame", "demoworld"))
|
||||
val file = ModMgr.getFile("basegame", "demoworld")
|
||||
val reader = java.io.FileReader(file)
|
||||
//ReadWorld.readWorldAndSetNewWorld(Terrarum.ingame!! as TerrarumIngame, reader)
|
||||
val world = ReadWorld.readLayerFormat(reader)
|
||||
val world = ReadWorld.readLayerFormat(reader, file)
|
||||
demoWorld = world
|
||||
printdbg(this, "Demo world loaded")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user