try catch downloading packs for offline usage

This commit is contained in:
Zoë Gidiere 2025-03-01 10:48:58 -07:00
parent c36b12e657
commit 49c6e70037

View File

@ -47,10 +47,12 @@ fun Project.configureDistribution() {
val downloadDefaultPacks = tasks.create("downloadDefaultPacks") {
group = "terra"
doFirst {
try {
file("${buildDir}/resources/main/packs/").deleteRecursively()
val defaultPackUrl =
URL("https://github.com/PolyhedralDev/TerraOverworldConfig/releases/download/" + Versions.Terra.overworldConfig + "/default.zip")
downloadPack(defaultPackUrl, project)
} catch (_:Exception) {}
}
}