mirror of
				https://github.com/ElCeejo/animalia
				synced 2025-11-04 04:03:05 +01:00 
			
		
		
		
	Fix crash from missing content id
This commit is contained in:
		
							parent
							
								
									3c899ffd12
								
							
						
					
					
						commit
						93c5127d1c
					
				@ -254,6 +254,7 @@ minetest.register_on_generated(function(minp, maxp)
 | 
			
		||||
            for y = max_y, 2, -1 do
 | 
			
		||||
                local vi = area:index(xcen, y, zcen)
 | 
			
		||||
                local c_node = data[vi]
 | 
			
		||||
                if not c_node then break end
 | 
			
		||||
                local c_name = minetest.get_name_from_content_id(c_node)
 | 
			
		||||
                local c_def = minetest.registered_nodes[c_name]
 | 
			
		||||
                if y == max_y and c_node ~= c_air then -- if top node solid
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user