From cfffaf7a4999896214838183a6c9db60eb5255b1 Mon Sep 17 00:00:00 2001 From: sychic <47618543+Sychic@users.noreply.github.com> Date: Mon, 10 Jun 2024 10:34:31 -0700 Subject: [PATCH] Build: Change `FMLModType` to `GAMELIBRARY` to allow for access to minecraft classes Related: EssentialGG/UniversalCraft#73 --- versions/build.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/versions/build.gradle.kts b/versions/build.gradle.kts index a6f5ee04..2afaa533 100644 --- a/versions/build.gradle.kts +++ b/versions/build.gradle.kts @@ -84,7 +84,9 @@ tasks.jar { exclude("mcmod.info") exclude("kotlin/**") manifest { - attributes(mapOf("FMLModType" to "LIBRARY")) + if (platform.isModLauncher) { + attributes(mapOf("FMLModType" to "GAMELIBRARY")) + } } }