mirror of
				https://github.com/mt-mods/biome_lib.git
				synced 2025-11-04 06:45:29 +01:00 
			
		
		
		
	Fix call to nil (function) vector.copy
Either vector.new or table.copy NOT LIKE THIS
This commit is contained in:
		
							
								
								
									
										2
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								init.lua
									
									
									
									
									
								
							@@ -642,7 +642,7 @@ function biome_lib:spawn_on_surfaces(sd,sp,sr,sc,ss,sa)
 | 
			
		||||
			if currentsurface == "default:water_source" and
 | 
			
		||||
					#minetest.find_nodes_in_area(
 | 
			
		||||
						{x=pos.x, y=pos.y-biome.depth_max-1, z=pos.z},
 | 
			
		||||
						vector.copy(pos),
 | 
			
		||||
						vector.new(pos),
 | 
			
		||||
						{"default:dirt", "default:dirt_with_grass", "default:sand"}
 | 
			
		||||
					) == 0 then
 | 
			
		||||
				return -- On water but no ground nearby
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user