Register fence: Allow setting nodedefs to 'false'
authorHybrid Dog <ovvv@web.de>
Sun, 13 Aug 2017 10:47:43 +0000 (12:47 +0200)
committerparamat <mat.gregory@virginmedia.com>
Fri, 18 Aug 2017 17:46:44 +0000 (18:46 +0100)
mods/default/functions.lua

index bdc30158cb43991dcfb778e0adbd9778cdf01124..87e7483b6bcf87095bf5e6ac8a659587bb6e53c5 100644 (file)
@@ -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