From e707ba3cf161dc7dd53e6349b5859041e79a5adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Mart=C3=ADnez?= Date: Sat, 29 Nov 2014 00:44:14 -0300 Subject: [PATCH] Fix leaked globals. --- mods/bucket/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/bucket/init.lua b/mods/bucket/init.lua index 999b344b..1ad3ef07 100644 --- a/mods/bucket/init.lua +++ b/mods/bucket/init.lua @@ -135,8 +135,8 @@ minetest.register_craftitem("bucket:bucket_empty", { return end -- Check if pointing to a liquid source - node = minetest.get_node(pointed_thing.under) - liquiddef = bucket.liquids[node.name] + local node = minetest.get_node(pointed_thing.under) + local liquiddef = bucket.liquids[node.name] if liquiddef ~= nil and liquiddef.itemname ~= nil and (node.name == liquiddef.source or (node.name == liquiddef.flowing and