From 56d8a4d438dfb1bc84903053f1a4f7c1eb4fb08d Mon Sep 17 00:00:00 2001 From: makamys Date: Fri, 22 Dec 2023 18:10:45 +0100 Subject: [PATCH] Fix the rest of runClient because why not --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index f149721a..febb3b8b 100644 --- a/build.gradle +++ b/build.gradle @@ -310,3 +310,9 @@ sourceSets { ext.refMap = refMapForYourConfig } } + +runClient { + // Workaround for Mixin not detecting mod (https://github.com/SpongePowered/Mixin/issues/207) + // (Fixed in UniMix, so this should be removed if we ever switch to it.) + args("--mods=" + java.nio.file.Paths.get("$projectDir").resolve(minecraft.runDir).normalize().relativize(shadowJar.archivePath.toPath())) +}