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