Add config defaults to prevent deserialize errors.

This commit is contained in:
Logan Gorence 2022-01-29 04:57:01 +00:00
parent 66ee0ba701
commit 0da3202555
No known key found for this signature in database
GPG Key ID: 9743CEF10935949A

View File

@ -4,12 +4,12 @@ import kotlinx.serialization.Serializable
@Serializable
data class GameplayConfig(
val mobs: MobsConfig,
val mobs: MobsConfig = MobsConfig(),
)
@Serializable
data class MobsConfig(
val disableEndermanGriefing: Boolean,
val disableFreezeDamage: Boolean,
val allowLeads: Boolean,
val disableEndermanGriefing: Boolean = false,
val disableFreezeDamage: Boolean = false,
val allowLeads: Boolean = false,
)