core: some fixes
This commit is contained in:
@@ -43,9 +43,10 @@ local function rebuildBlockCatalog()
|
||||
for _, block in ipairs(blocksFolder:GetChildren()) do
|
||||
local id = block:GetAttribute("n")
|
||||
if id ~= nil then
|
||||
local displayName = block:GetAttribute("name") or block:GetAttribute("displayName") or block:GetAttribute("dn") or block.Name
|
||||
table.insert(blockCatalog, {
|
||||
id = tostring(id),
|
||||
name = block:GetAttribute("displayName") or block:GetAttribute("dn") or block.Name,
|
||||
name = displayName,
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user