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:
bb08429
)
Register fence: Allow setting nodedefs to 'false'
author
Hybrid Dog
<ovvv@web.de>
Sun, 13 Aug 2017 10:47:43 +0000
(12:47 +0200)
committer
paramat
<mat.gregory@virginmedia.com>
Fri, 18 Aug 2017 17:46:44 +0000
(18:46 +0100)
mods/default/functions.lua
patch
|
blob
|
history
diff --git
a/mods/default/functions.lua
b/mods/default/functions.lua
index bdc30158cb43991dcfb778e0adbd9778cdf01124..87e7483b6bcf87095bf5e6ac8a659587bb6e53c5 100644
(file)
--- a/
mods/default/functions.lua
+++ b/
mods/default/functions.lua
@@
-297,7
+297,7
@@
function default.register_fence(name, def)
groups = {},
}
for k, v in pairs(default_fields) do
- if
not def[k]
then
+ if
def[k] == nil
then
def[k] = v
end
end