From d3d22ca0b99bd707125df37121c895ded1765933 Mon Sep 17 00:00:00 2001 From: Josiah Glosson Date: Sun, 30 Jun 2024 12:19:40 -0500 Subject: [PATCH] Unimined snapshot --- build.gradle.kts | 2 +- version.gradle.kts | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 6f3ba0f..474f2e2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,6 @@ plugins { id("io.github.gaming32.gradle.preprocess-root") version "0.4.4" - id("xyz.wagyourtail.unimined") version "1.2.14" apply false + id("xyz.wagyourtail.unimined") version "1.3.0-SNAPSHOT" apply false } repositories { diff --git a/version.gradle.kts b/version.gradle.kts index 2babdc0..a31d7c3 100644 --- a/version.gradle.kts +++ b/version.gradle.kts @@ -158,15 +158,17 @@ unimined.minecraft { val runName = "test${name.capitalized()}" val user = name.uppercase() val provider = (minecraftData as MinecraftDownloader).provider - val baseConfig = provider.provideVanillaRunClientTask(runName, file("run/$runName")) - baseConfig.description = "Test $user" - baseConfig.args.replaceAll { if (it == "Dev") "$user$usernameSuffix" else it } - baseConfig.jvmArgs.add("-Dworld-host-testing.enabled=true") - baseConfig.jvmArgs.add("-Dworld-host-testing.user=$user") - baseConfig.jvmArgs.add("-Ddevauth.enabled=false") - baseConfig.javaVersion = JavaVersion.VERSION_21 - runs.addTarget(baseConfig) - runs.configFirst(runName, (provider.mcPatcher as AbstractMinecraftTransformer)::applyClientRunTransform) + provider.provideRunClientTask(runName, file("run/$runName")) + configFirst(runName) { + description = "Test $user" + args!!.replaceAll { if (it == "Dev") "$user$usernameSuffix" else it } + jvmArgs = jvmArgs!!.toList() + listOf( + "-Dworld-host-testing.enabled=true", + "-Dworld-host-testing.user=$user", + "-Ddevauth.enabled=false" + ) + javaVersion = JavaVersion.VERSION_21 + } } } }