From ab1190bef85c59a375a8fe165b50057912d36566 Mon Sep 17 00:00:00 2001 From: Rhys <98863820+rhysdh540@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:22:41 +0800 Subject: [PATCH] fix the mappings --- forge/build.gradle.kts | 15 ++++++++------- forge/patch.tiny | 3 --- 2 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 forge/patch.tiny diff --git a/forge/build.gradle.kts b/forge/build.gradle.kts index 732ed06..d435832 100644 --- a/forge/build.gradle.kts +++ b/forge/build.gradle.kts @@ -9,13 +9,14 @@ unimined.minecraft { } mappings { - // TODO make this actually work - @Suppress("UnstableApiUsage") - mapping(files("patch.tiny")) { - sourceNamespace("searge") - dependsOn("searge") - outputs("patch", true) { listOf("searge") } - allowDuplicateOutputs() + stub.withMappings("searge", "mojmap") { + c(when (minecraft.version) { + "1.19.2" -> "exm" + "1.20.1" -> "fho" + else -> error("no ParticleEngine mapping for ${minecraft.version}") + }, listOf("net/minecraft/client/particle/ParticleEngine")) { + f("[nothing]", "Ljava/util/Map;", "f_107293_", "providers") + } } } diff --git a/forge/patch.tiny b/forge/patch.tiny deleted file mode 100644 index 528b77d..0000000 --- a/forge/patch.tiny +++ /dev/null @@ -1,3 +0,0 @@ -tiny 2 0 official searge patch -c fho net/minecraft/client/particle/ParticleEngine net/minecraft/client/particle/ParticleEngine - f Ljava/util/Map; k f_107293_ providers \ No newline at end of file