From cc2f75b2f943c37d7291162dcb18fc4ba41cbf55 Mon Sep 17 00:00:00 2001 From: Hybrid Dog Date: Sun, 13 Aug 2017 12:47:43 +0200 Subject: [PATCH] Register fence: Allow setting nodedefs to 'false' --- mods/default/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1