mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Add support for custom bed sounds
This commit is contained in:
		
				
					committed by
					
						
						Auke Kok
					
				
			
			
				
	
			
			
			
						parent
						
							df19b4eab0
						
					
				
				
					commit
					57eb906047
				
			@@ -34,7 +34,7 @@ function beds.register_bed(name, def)
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		stack_max = 1,
 | 
			
		||||
		groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1},
 | 
			
		||||
		sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
		sounds = def.sounds or default.node_sound_wood_defaults(),
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
			fixed = def.nodebox.bottom,
 | 
			
		||||
@@ -138,7 +138,7 @@ function beds.register_bed(name, def)
 | 
			
		||||
		is_ground_content = false,
 | 
			
		||||
		pointable = false,
 | 
			
		||||
		groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 2},
 | 
			
		||||
		sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
		sounds = def.sounds or default.node_sound_wood_defaults(),
 | 
			
		||||
		drop = name .. "_bottom",
 | 
			
		||||
		node_box = {
 | 
			
		||||
			type = "fixed",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user