diff --git a/plants_lib/init.lua b/plants_lib/init.lua index 3138dd1..fa10bf0 100644 --- a/plants_lib/init.lua +++ b/plants_lib/init.lua @@ -182,7 +182,7 @@ function plantslib:search_for_surfaces(minp, maxp, biomedef, node_or_function_or minetest.remove_node(pos) end - objtype = type(node_or_function_or_model) + local objtype = type(node_or_function_or_model) if objtype == "table" then plantslib:generate_tree(pos, node_or_function_or_model)