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:
b6ef71c
)
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
sfan5
<sfan5@live.de>
Sun, 19 Nov 2017 22:03:38 +0000
(23:03 +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