forked from luanti-org/minetest_game
		
	Beds: Do not crash when placing in an unknown node
This commit is contained in:
		@@ -55,7 +55,7 @@ function beds.register_bed(name, def)
 | 
			
		||||
			end
 | 
			
		||||
 | 
			
		||||
			local pos
 | 
			
		||||
			if minetest.registered_items[minetest.get_node(under).name].buildable_to then
 | 
			
		||||
			if udef and udef.buildable_to then
 | 
			
		||||
				pos = under
 | 
			
		||||
			else
 | 
			
		||||
				pos = pointed_thing.above
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user