mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
completely abolishing GSON; new save format impl wip
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package net.torvald.terrarum.tests
|
||||
|
||||
import com.badlogic.gdx.utils.JsonValue
|
||||
import net.torvald.terrarum.utils.JsonFetcher
|
||||
import net.torvald.terrarum.utils.JsonWriter
|
||||
import java.io.File
|
||||
@@ -63,7 +64,7 @@ fun main() {
|
||||
val key = record[0]
|
||||
val value = record[index + 2]
|
||||
if (value.isNotBlank()) {
|
||||
jsonObject.addProperty(key, value)
|
||||
jsonObject.addChild(key, JsonValue(value))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user