1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-14 05:50:19 +01:00

Register fence: Allow setting nodedefs to 'false'

This commit is contained in:
Hybrid Dog 2017-08-13 12:47:43 +02:00 committed by sfan5
parent b6ef71c92e
commit cc2f75b2f9

View 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