core: some fixes

This commit is contained in:
2026-01-09 17:02:35 +02:00
parent 2a0dd51659
commit 4785795640
10 changed files with 166 additions and 96 deletions

View File

@@ -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