From 83111ddb4df6550cc1aab8bb9f3ec4d4091fbb52 Mon Sep 17 00:00:00 2001 From: MrMangoHands Date: Fri, 16 Aug 2024 17:59:49 -0700 Subject: [PATCH] Include Fabric Loader in common build to fix warnings The common project includes Sodium's Fabric API integration, which can be used on either loader. The Fabric API modules reference Fabric Loader's API classes, so we need to include it to prevent warning spam about an unknown enum constant. --- common/build.gradle.kts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/build.gradle.kts b/common/build.gradle.kts index aba0458673..c8c989db08 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -25,6 +25,9 @@ dependencies { annotationProcessor("io.github.llamalad7:mixinextras-common:0.3.5") compileOnly("net.fabricmc:sponge-mixin:0.13.2+mixin.0.8.5") + // Fixes warning spam about an unknown enum constant pulled in by Fabric API + compileOnly("net.fabricmc:fabric-loader:$FABRIC_LOADER_VERSION") + fun addDependentFabricModule(name: String) { val module = fabricApi.module(name, FABRIC_API_VERSION) modCompileOnly(module)