Skip to content

Commit

Permalink
Merge iuzx's changes (mostly) into develop-1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Kan18 committed Jul 7, 2023
2 parents 6247784 + e351ab6 commit b9bf773
Show file tree
Hide file tree
Showing 9 changed files with 6,645 additions and 4,452 deletions.
10 changes: 3 additions & 7 deletions core/apis/nameDB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@ function nameDB:loadDirectory(directory)
error('Unable to read ' .. fs.combine(directory, file))
end

for strId, block in pairs(blocks) do
for strId, blockName in pairs(blocks) do
strId = string.format('%s:%s', mod, strId)
if type(block.name) == 'string' then
self.data[strId .. ':0'] = block.name
else
for nid,name in pairs(block.name) do
self.data[strId .. ':' .. (nid-1)] = name
end
if type(blockName) == 'string' then
self.data[strId] = blockName
end
end

Expand Down
Loading

0 comments on commit b9bf773

Please sign in to comment.