mirror of
https://github.com/mt-mods/biome_lib.git
synced 2024-12-25 02:10:18 +01:00
Fix call to nil (function) vector.copy
Either vector.new or table.copy NOT LIKE THIS
This commit is contained in:
parent
0837ff7fd2
commit
29899f2d36
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
|
||||
|
Loading…
Reference in New Issue
Block a user