Fix is_block_precious
This commit is contained in:
parent
372d27216b
commit
d7c8e4826f
|
@ -262,10 +262,13 @@ function is_block_precious(block)
|
|||
if block then
|
||||
for id, refblock in ipairs(WORTHY_BLOCKS) do
|
||||
if block.name == refblock.name then
|
||||
if (refblock.state_type
|
||||
and block.state and block.state.type
|
||||
and block.state.type == refblock.state_type) then
|
||||
if refblock.state_type then
|
||||
if (block.state and block.state.type
|
||||
and block.state.type == refblock.state_type) then
|
||||
return true
|
||||
end
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue