diff --git a/src/main/kotlin/com/xpdustry/toxopid/spec/ModDependency.kt b/src/main/kotlin/com/xpdustry/toxopid/spec/ModDependency.kt index 993da5a..8419bf0 100644 --- a/src/main/kotlin/com/xpdustry/toxopid/spec/ModDependency.kt +++ b/src/main/kotlin/com/xpdustry/toxopid/spec/ModDependency.kt @@ -25,10 +25,12 @@ */ package com.xpdustry.toxopid.spec +import java.io.Serializable + /** * Represents a mod dependency. */ public data class ModDependency( val name: String, val soft: Boolean = false, -) +) : Serializable diff --git a/src/main/kotlin/com/xpdustry/toxopid/spec/ModMetadata.kt b/src/main/kotlin/com/xpdustry/toxopid/spec/ModMetadata.kt index 82a53c4..4fd6fd4 100644 --- a/src/main/kotlin/com/xpdustry/toxopid/spec/ModMetadata.kt +++ b/src/main/kotlin/com/xpdustry/toxopid/spec/ModMetadata.kt @@ -30,6 +30,7 @@ import org.hjson.JsonArray import org.hjson.JsonObject import org.hjson.Stringify import java.io.File +import java.io.Serializable /** * Represents the metadata of a mod. @@ -50,7 +51,7 @@ public data class ModMetadata( public var textureScale: Float = 1f, public var pregenerated: Boolean = false, public val dependencies: MutableList = mutableListOf(), -) { +) : Serializable { public companion object { /** * @return a parsed [ModMetadata] from json