Skip to content

Commit

Permalink
Update to 1.21-pre4
Browse files Browse the repository at this point in the history
  • Loading branch information
Su5eD committed Jun 9, 2024
1 parent 79d6f25 commit 6890cb4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
33 changes: 21 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ repositories {
name = "NeoForged"
url = uri("https://maven.neoforged.net/releases")
}
maven {
name = "Maven for PR #1076" // https://github.com/neoforged/NeoForge/pull/1076
url = uri("https://prmaven.neoforged.net/NeoForge/pr1076")
content {
includeModule("net.neoforged", "testframework")
includeModule("net.neoforged", "neoforge")
}
}
}

dependencies {
Expand All @@ -105,18 +113,19 @@ val downloadMojmaps by tasks.registering {

doLast {
val cache = project.layout.buildDirectory.dir("tmp/$name").get()
val provider = MinecraftMetadataProvider::class.java.declaredConstructors[0].apply { isAccessible = true }.newInstance(
MinecraftMetadataProvider.Options(
versionMc,
Constants.VERSION_MANIFESTS,
Constants.EXPERIMENTAL_VERSIONS,
null,
cache.file("version_manifest.json").asFile.toPath(),
cache.file("experimental_version_manifest.json").asFile.toPath(),
cache.file("minecraft-info.json").asFile.toPath()
),
Function<String, DownloadBuilder> { Download.create(it) }
) as MinecraftMetadataProvider
val provider =
MinecraftMetadataProvider::class.java.declaredConstructors[0].apply { isAccessible = true }.newInstance(
MinecraftMetadataProvider.Options(
versionMc,
Constants.VERSION_MANIFESTS,
Constants.EXPERIMENTAL_VERSIONS,
null,
cache.file("version_manifest.json").asFile.toPath(),
cache.file("experimental_version_manifest.json").asFile.toPath(),
cache.file("minecraft-info.json").asFile.toPath()
),
Function<String, DownloadBuilder> { Download.create(it) }
) as MinecraftMetadataProvider

val clientMappingsPath = cache.file("mojang/client.txt").asFile.toPath()
val serverMappingsPath = cache.file("mojang/server.txt").asFile.toPath()
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G

versionMc=1.20.6
versionForge=20.6.63-beta
versionMc=1.21-pre4
versionForge=21.0.0-alpha.1.21-pre4.20240609.093716
versionLoaderUpstream=0.15.10
versionYarn=1.20.6+build.1
versionYarn=1.21-pre4+build.3

0 comments on commit 6890cb4

Please sign in to comment.