mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-02 21:20:55 +00:00
Add config defaults to prevent deserialize errors.
This commit is contained in:
parent
66ee0ba701
commit
0da3202555
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user