mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-03 21:41:32 +00:00
Add config defaults to prevent deserialize errors.
This commit is contained in:
@ -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,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user