Mine: fix is_block_precious
This commit is contained in:
parent
9ad825fc60
commit
99d6aeb35e
1 changed files with 7 additions and 4 deletions
|
@ -240,11 +240,14 @@ function is_block_precious(block)
|
||||||
}
|
}
|
||||||
if block then
|
if block then
|
||||||
for id, refblock in ipairs(WORTHY_BLOCKS) do
|
for id, refblock in ipairs(WORTHY_BLOCKS) do
|
||||||
if block['name'] == refblock['name'] then
|
if block.name == refblock.name then
|
||||||
if (refblock['state_type']
|
if refblock.state_type then
|
||||||
and block['state'] and block['state']['type']
|
if (block.state and block.state.type
|
||||||
and block['state']['type'] == refblock['state_type']) then
|
and block.state.type == refblock.state_type) then
|
||||||
return true
|
return true
|
||||||
|
end
|
||||||
|
else
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue