Support .tar.gz maps and map-system toggle

Add Apache Commons Compress dependency and relocate its packages for shading. Introduce a config guard (map-system.enabled) in SpeedHG.onWorldInit and DataPackManager.install to skip internal map handling when an external map system is enabled. Add untar() to WorldManager using TarArchiveInputStream + GzipCompressorInputStream and update extraction logic to handle .zip and .gz (.tar.gz) archives, extracting to the world parent folder as needed.
This commit is contained in:
TDSTOS
2026-04-12 12:26:53 +02:00
parent 7005546e21
commit 26a29e8ba9
4 changed files with 38 additions and 1 deletions

View File

@@ -30,6 +30,8 @@ dependencies {
implementation(libs.kotlinxCoroutines)
implementation(libs.kotlinxSerialization)
implementation("org.apache.commons:commons-compress:1.26.1")
compileOnly("com.lunarclient:apollo-api:1.2.4")
compileOnly("com.lunarclient:apollo-extra-adventure4:1.2.4")
@@ -56,6 +58,7 @@ tasks {
relocate("fr.mrmicky.fastboard", "club.mcscrims.speedhg.libs.fastboard")
relocate("com.zaxxer.hikari", "club.mcscrims.speedhg.libs.hikari")
relocate("org.apache.commons.compress", "club.mcscrims.speedhg.libs.compress")
}
build {