From: Diego Martínez Date: Sat, 29 Nov 2014 03:44:14 +0000 (-0300) Subject: Fix leaked globals. X-Git-Tag: 0.4.11~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e707ba3cf161dc7dd53e6349b5859041e79a5adc;p=oweals%2Fminetest_game.git Fix leaked globals. --- 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