forked from minetest/minetest_game
Register fence: Allow setting nodedefs to 'false'
This commit is contained in:
parent
bb084294ce
commit
f928780946
@ -297,7 +297,7 @@ function default.register_fence(name, def)
|
|||||||
groups = {},
|
groups = {},
|
||||||
}
|
}
|
||||||
for k, v in pairs(default_fields) do
|
for k, v in pairs(default_fields) do
|
||||||
if not def[k] then
|
if def[k] == nil then
|
||||||
def[k] = v
|
def[k] = v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user