From 24b56c8763ee22c402cdc94b5e78fb0784e1b48c Mon Sep 17 00:00:00 2001 From: Jordan Leppert Date: Sat, 4 Dec 2021 13:24:47 +0000 Subject: [PATCH] biome_lib.register_on_generate now passes node position and face direction to node placement function --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index b39593e..fe7b656 100644 --- a/api.lua +++ b/api.lua @@ -378,7 +378,7 @@ function biome_lib.populate_surfaces(b, nodes_or_function_or_model, snodes, chec biome_lib.dbg("Node \""..nodes_or_function_or_model.."\" was placed at "..minetest.pos_to_string(p_top), 4) spawned = true elseif objtype == "function" then - nodes_or_function_or_model(pos) + nodes_or_function_or_model(p_top, fdir) biome_lib.dbg("A function was run on surface node at "..minetest.pos_to_string(pos), 4) spawned = true elseif objtype == "string" and pcall(loadstring(("return %s(...)"):