From f8e529bc27a162993038161c54df26c3f91895ad Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 2 Sep 2017 21:51:54 +0200 Subject: [PATCH] Fix 2 vars leaking into _G --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index b2e3c3b..c702e47 100644 --- a/init.lua +++ b/init.lua @@ -1,6 +1,6 @@ -- advschem/init.lua -advschem = {} +local advschem = {} -- Directory delimeter fallback (normally comes from builtin) if not DIR_DELIM then @@ -792,7 +792,7 @@ minetest.register_tool("advschem:probtool", { -- This sets the node probability of pointed node to the -- currently used probability stored in the tool. - pos = pointed_thing.under + local pos = pointed_thing.under local node = minetest.get_node(pos) -- Schematic void are ignored, they always have probability 0 if node.name == "advschem:void" then