From: Hybrid Dog Date: Sun, 13 Aug 2017 10:47:43 +0000 (+0200) Subject: Register fence: Allow setting nodedefs to 'false' X-Git-Tag: 0.4.17.1~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cc2f75b2f943c37d7291162dcb18fc4ba41cbf55;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