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

View File

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