From 29899f2d365417cd21a282ea79489694fd3a9814 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Mon, 7 Jan 2019 19:37:16 +0100 Subject: [PATCH] Fix call to nil (function) vector.copy Either vector.new or table.copy NOT LIKE THIS --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 80da751..e54f9a4 100644 --- a/init.lua +++ b/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