fix(datapack): handle . in names

This commit is contained in:
Kazhnuz 2021-05-15 21:40:12 +02:00
parent 1310d9f5e8
commit 7629b60e45

View file

@ -36,7 +36,11 @@ function DataPack:new(foldername, categories, areFiles, subfiles)
end end
function DataPack:getBaseDirectory(lua) function DataPack:getBaseDirectory(lua)
return utils.datas.concatDataFolder(self.foldername, lua) local foldername = self.foldername
if (not lua) then
foldername = string.gsub(foldername, "%.", "/")
end
return utils.datas.concatDataFolder(foldername, lua)
end end
function DataPack:getCategoryDirectory(category, lua) function DataPack:getCategoryDirectory(category, lua)