Fix leaked globals.

This commit is contained in:
Diego Martínez 2014-11-29 00:44:14 -03:00 committed by sfan5
parent 6680a51988
commit e707ba3cf1
1 changed files with 2 additions and 2 deletions

View 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