We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6680a51 commit e707ba3Copy full SHA for e707ba3
mods/bucket/init.lua
@@ -135,8 +135,8 @@ minetest.register_craftitem("bucket:bucket_empty", {
135
return
136
end
137
-- Check if pointing to a liquid source
138
- node = minetest.get_node(pointed_thing.under)
139
- liquiddef = bucket.liquids[node.name]
+ local node = minetest.get_node(pointed_thing.under)
+ local liquiddef = bucket.liquids[node.name]
140
if liquiddef ~= nil and liquiddef.itemname ~= nil and
141
(node.name == liquiddef.source or
142
(node.name == liquiddef.flowing and
0 commit comments