From 753cb01234e7eea73afed0dd8711dc5be6621e72 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 24 May 2014 17:08:15 -0400 Subject: [PATCH] ...and make it local. --- plants_lib/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)