From 17f0faaccb0db837a64b6ce7cecff7f8ab048410 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 10 Dec 2023 15:43:14 +0100 Subject: Add crude mappings/transformer support --- archenemyexample/build.gradle.kts | 8 +++++++- archenemyexample/src/forgeMain/kotlin/doStuff.kt | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'archenemyexample') diff --git a/archenemyexample/build.gradle.kts b/archenemyexample/build.gradle.kts index eb0d9ff..6ed1dbe 100644 --- a/archenemyexample/build.gradle.kts +++ b/archenemyexample/build.gradle.kts @@ -19,7 +19,13 @@ kotlin { compilations.named("main").get().run { defaultSourceSet.dependsOn(allJvm) this.dependencies { - implementation(mojang.minecraft("1.8.9", MCSide.CLIENT)) + val mappedMinecraft = mojang.mapJar( + mojang.minecraft("1.20.2", MCSide.CLIENT) as ModuleDependency, + mojang.officialMappings("1.20.2", MCSide.CLIENT), + "official", + "named" + ) + implementation(mappedMinecraft) } } } diff --git a/archenemyexample/src/forgeMain/kotlin/doStuff.kt b/archenemyexample/src/forgeMain/kotlin/doStuff.kt index 659bc2b..1e773ef 100644 --- a/archenemyexample/src/forgeMain/kotlin/doStuff.kt +++ b/archenemyexample/src/forgeMain/kotlin/doStuff.kt @@ -1,3 +1,3 @@ actual fun doStuff(args: Int) { - + val x: a = TODO() } \ No newline at end of file -- cgit