Skip to content

Commit

Permalink
Register fence: Allow setting nodedefs to 'false'
Browse files Browse the repository at this point in the history
  • Loading branch information
HybridDog authored and paramat committed Aug 18, 2017
1 parent bb08429 commit f928780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/default/functions.lua
Expand Up @@ -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
Expand Down

0 comments on commit f928780

Please sign in to comment.