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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user