From 86abe2118572bf7da1c53a22bf579cdd2e66c8d2 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 20 Nov 2014 11:17:10 -0500 Subject: [PATCH] local-ize walldir in vines mod --- vines/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vines/init.lua b/vines/init.lua index b4638c2..97cc252 100644 --- a/vines/init.lua +++ b/vines/init.lua @@ -243,7 +243,7 @@ minetest.register_abm({ chance = 8, action = function(pos, node, active_object_count, active_object_count_wider) if minetest.find_node_near(pos, 5, "group:tree") == nil then - walldir = node.param2 + local walldir = node.param2 minetest.add_node(pos, {name=node.name.."_rotten", param2 = walldir}) end end @@ -257,7 +257,7 @@ minetest.register_abm({ local p = {x=pos.x, y=pos.y-1, z=pos.z} local n = minetest.get_node(p) if n.name == "air" then - walldir = node.param2 + local walldir = node.param2 minetest.add_node(p, {name=node.name, param2 = walldir}) end end