mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-05 23:33:51 +01:00
Fix leaked globals.
This commit is contained in:
parent
6680a51988
commit
e707ba3cf1
@ -135,8 +135,8 @@ minetest.register_craftitem("bucket:bucket_empty", {
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
-- Check if pointing to a liquid source
|
-- Check if pointing to a liquid source
|
||||||
node = minetest.get_node(pointed_thing.under)
|
local node = minetest.get_node(pointed_thing.under)
|
||||||
liquiddef = bucket.liquids[node.name]
|
local liquiddef = bucket.liquids[node.name]
|
||||||
if liquiddef ~= nil and liquiddef.itemname ~= nil and
|
if liquiddef ~= nil and liquiddef.itemname ~= nil and
|
||||||
(node.name == liquiddef.source or
|
(node.name == liquiddef.source or
|
||||||
(node.name == liquiddef.flowing and
|
(node.name == liquiddef.flowing and
|
||||||
|
Loading…
Reference in New Issue
Block a user