From 8a96753c6eebdf2a21301248a9e4dd39274f86d2 Mon Sep 17 00:00:00 2001 From: ev chang Date: Thu, 20 Jun 2024 19:21:09 +0700 Subject: [PATCH] Update OneConfig + devauth --- build.gradle.kts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 711b9af..342d058 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -23,11 +23,6 @@ val mod_version: String by project val mod_id: String by project val mod_archives_name: String by project -// Sets up the variables for when we preprocess to other Minecraft versions. -preprocess { - vars.put("MODERN", if (project.platform.mcMinor >= 16) 1 else 0) -} - // Replaces the variables in `ExampleMod.java` to the ones specified in `gradle.properties`. blossom { replaceToken("@VER@", mod_version) @@ -95,14 +90,14 @@ repositories { // Configures the libraries/dependencies for your mod. dependencies { // Adds the OneConfig library, so we can develop with it. - modCompileOnly("cc.polyfrost:oneconfig-$platform:0.2.1-alpha+") + modCompileOnly("cc.polyfrost:oneconfig-$platform:0.2.2-alpha+") val loaderPlatform = when { platform.isFabric -> "fabric" platform.isLegacyForge -> "forge-legacy" else -> "forge-latest" } - modRuntimeOnly("me.djtheredstoner:DevAuth-$loaderPlatform:1.1.2") + modRuntimeOnly("me.djtheredstoner:DevAuth-$loaderPlatform:1.2.0") // If we are building for legacy forge, includes the launch wrapper with `shade` as we configured earlier. if (platform.isLegacyForge) { compileOnly("org.spongepowered:mixin:0.7.11-SNAPSHOT") @@ -194,4 +189,4 @@ tasks { archiveClassifier.set("") enabled = false } -} \ No newline at end of file +}