Rebase on Radiance #71
1 changed files with 5 additions and 3 deletions
|
@ -36,10 +36,12 @@ end
|
||||||
|
|
||||||
function DataManager:loadDatas()
|
function DataManager:loadDatas()
|
||||||
self.datapacks = {}
|
self.datapacks = {}
|
||||||
|
if (index.datapacks ~= nil) then
|
||||||
for key, datas in pairs(index.datapacks) do
|
for key, datas in pairs(index.datapacks) do
|
||||||
self.core.debug:debug("datamanager", "loading data for " .. key)
|
self.core.debug:debug("datamanager", "loading data for " .. key)
|
||||||
self.datapacks[key] = DataPack(datas[1], datas[2], datas[3], datas[4], datas[5])
|
self.datapacks[key] = DataPack(datas[1], datas[2], datas[3], datas[4], datas[5])
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function DataManager:get(datapack, name)
|
function DataManager:get(datapack, name)
|
||||||
|
|
Loading…
Reference in a new issue