projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6680a51
)
Fix leaked globals.
author
Diego MartÃnez
<kaeza@users.noreply.github.com>
Sat, 29 Nov 2014 03:44:14 +0000
(
00:44
-0300)
committer
sfan5
<sfan5@live.de>
Sat, 29 Nov 2014 17:03:18 +0000
(18:03 +0100)
mods/bucket/init.lua
patch
|
blob
|
history
diff --git
a/mods/bucket/init.lua
b/mods/bucket/init.lua
index 999b344b0b4c93b6e9a695ae20cac0d538bd5a45..1ad3ef074e5d9ef23213350c233faa9631038744 100644
(file)
--- a/
mods/bucket/init.lua
+++ b/
mods/bucket/init.lua
@@
-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)
+ l
ocal l
iquiddef = bucket.liquids[node.name]
if liquiddef ~= nil and liquiddef.itemname ~= nil and
(node.name == liquiddef.source or
(node.name == liquiddef.flowing and