WIP: Try to update Milo for 1.19 #63

Draft
Kan18 wants to merge 27 commits from Kan18/develop-1.8 into develop-1.8
2 changed files with 4 additions and 2107 deletions
Showing only changes of commit 4fe0035498 - Show all commits

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