From: Hybrid Dog Date: Sun, 13 Aug 2017 10:47:43 +0000 (+0200) Subject: Register fence: Allow setting nodedefs to 'false' X-Git-Tag: 5.0.0~184 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f92878094660d8a25ea7f9d06a9b2a98ebdf0fad;p=oweals%2Fminetest_game.git Register fence: Allow setting nodedefs to 'false' --- diff --git a/mods/default/functions.lua b/mods/default/functions.lua index bdc30158..87e7483b 100644 --- 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