1
0
mirror of https://github.com/mt-mods/biome_lib.git synced 2024-12-25 10:20:18 +01:00

Fix call to nil (function) vector.copy

Either vector.new or table.copy
NOT LIKE THIS
This commit is contained in:
SmallJoker 2019-01-07 19:37:16 +01:00
parent 0837ff7fd2
commit 29899f2d36

View File

@ -642,7 +642,7 @@ function biome_lib:spawn_on_surfaces(sd,sp,sr,sc,ss,sa)
if currentsurface == "default:water_source" and if currentsurface == "default:water_source" and
#minetest.find_nodes_in_area( #minetest.find_nodes_in_area(
{x=pos.x, y=pos.y-biome.depth_max-1, z=pos.z}, {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"} {"default:dirt", "default:dirt_with_grass", "default:sand"}
) == 0 then ) == 0 then
return -- On water but no ground nearby return -- On water but no ground nearby