From cc3b0b66cab183d590bb5c7d321c7b9bb68e8705 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Thu, 6 Aug 2015 21:51:01 +0200 Subject: [PATCH] Removed a global variable in moretrees' node definitions --- mods/moretrees/node_defs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/moretrees/node_defs.lua b/mods/moretrees/node_defs.lua index 8374131d..66951ff8 100755 --- a/mods/moretrees/node_defs.lua +++ b/mods/moretrees/node_defs.lua @@ -233,7 +233,7 @@ for i in ipairs(moretrees.treelist) do chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) local fdir = node.param2 or 0 - nfdir = dirs2[fdir+1] + local nfdir = dirs2[fdir+1] minetest.add_node(pos, {name = "moretrees:"..treename.."_trunk", param2 = nfdir}) end, })