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
1 changed files with 1 additions and 1 deletions

View File

@ -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