Fix leaked globals.
authorDiego Martínez <kaeza@users.noreply.github.com>
Sat, 29 Nov 2014 03:44:14 +0000 (00:44 -0300)
committersfan5 <sfan5@live.de>
Sat, 29 Nov 2014 17:03:18 +0000 (18:03 +0100)
mods/bucket/init.lua

index 999b344b0b4c93b6e9a695ae20cac0d538bd5a45..1ad3ef074e5d9ef23213350c233faa9631038744 100644 (file)
@@ -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