Allow absolute path for global data packs

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad
2025-03-26 00:30:00 +00:00
parent ed96f2064b
commit ea82d44aab

View File

@@ -405,7 +405,7 @@ QString MinecraftInstance::dataPacksDir()
if (relativePath.isEmpty())
relativePath = "datapacks";
return FS::PathCombine(gameRoot(), relativePath);
return QDir(gameRoot()).filePath(relativePath);
}
QString MinecraftInstance::resourcePacksDir() const