Skip to content
Snippets Groups Projects
Commit e707ba3c authored by Diego Martínez's avatar Diego Martínez Committed by sfan5
Browse files

Fix leaked globals.

parent 6680a519
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment