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