mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +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)
|
local function process_properties(lib)
|
||||||
for id, props in pairs(lib.properties) do
|
for id, props in pairs(lib.properties) do
|
||||||
if props.parent then
|
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
|
if not props[propname] then
|
||||||
props[propname] = value
|
props[propname] = value
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue