Skip to content

Commit

Permalink
Update TranslateResourcePack.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
SiongSng authored Jul 25, 2023
1 parent f3112d1 commit e2a3cc8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import java.net.URL
import java.nio.charset.StandardCharsets

object TranslateResourcePack {
private const val FILE_NAME = "RPMTW-Translate-Resource-Pack-1.18.zip"
private const val FILE_NAME = "RPMTW-1.18.zip"
private val resourcePackFolder: File = RPMTWPlatformModPlugin.getGameFolder().resolve("resourcepacks")
private val resourcePackFile = resourcePackFolder.resolve(FILE_NAME)
private val cacheFile = Util.getFileLocation(FILE_NAME)
Expand Down Expand Up @@ -75,7 +75,7 @@ object TranslateResourcePack {
return
}

val downloadUrl = "https://github.com/RPMTW/Translate-Resource-Pack/releases/latest/download/$FILE_NAME"
val downloadUrl = "https://github.com/RPMTW/ResourcePack-Mod-zh_tw/raw/Translated-1.18/$FILE_NAME"

FileUtils.copyURLToFile(URL(downloadUrl), cacheFile)
if (!cacheFile.exists()) {
Expand Down Expand Up @@ -113,4 +113,4 @@ object TranslateResourcePack {
fun getPackId(): String {
return "file/$FILE_NAME"
}
}
}

0 comments on commit e2a3cc8

Please sign in to comment.