mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
fix process_properties
This commit is contained in:
parent
8ea83ba469
commit
dde8c674b8
1 changed files with 2 additions and 1 deletions
|
|
@ -17,7 +17,8 @@ end
|
|||
local function process_properties(lib)
|
||||
for id, props in pairs(lib.properties) do
|
||||
if props.parent then
|
||||
for propname, value in pairs(lib.properties[block.index(props.parent)]) do
|
||||
local parent_props = lib.properties[block.index(props.parent)] or {}
|
||||
for propname, value in pairs(parent_props) do
|
||||
if not props[propname] then
|
||||
props[propname] = value
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue