Skip to content

Commit

Permalink
fix(generation): Update link of version data json file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayfri committed Dec 19, 2024
1 parent 7eebd22 commit f932e9c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.PropertySpec
import generateFile
import getFromCacheOrDownloadJson
import minecraftVersion
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonNamingStrategy
import kotlinx.serialization.json.decodeFromJsonElement
import kotlinx.serialization.json.jsonObject
import minecraftVersion
import java.io.File

@Serializable
Expand All @@ -26,7 +26,7 @@ val jsonParser = Json {
}

suspend fun downloadDefaultDatapackVersion() {
val url = "$MAIN_GITHUB_URL/master/versions_data.json"
val url = "$MAIN_GITHUB_URL/master/version_data.json"
val versions = getFromCacheOrDownloadJson("version_data.json", url).jsonObject
if (!versions.containsKey(minecraftVersion)) {
File(cacheDir, "version_data.json").delete()
Expand Down

0 comments on commit f932e9c

Please sign in to comment.