Fixed item names

This commit is contained in:
rspx
2023-01-08 16:25:23 +01:00
committed by Kan18
parent 9f8f56064c
commit 4fe0035498
2 changed files with 4 additions and 2107 deletions

View File

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

File diff suppressed because one or more lines are too long