diff --git a/fabric/build.gradle b/fabric/build.gradle index a4784f91..e09df301 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -29,6 +29,7 @@ configurations { dependencies { modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}" + modIncludeImplementation(fabricApi.module("fabric-api-base", rootProject.fabric_api_version)) { exclude group: 'net.fabricmc', module: 'fabric-loader' } modIncludeImplementation(fabricApi.module("fabric-lifecycle-events-v1", rootProject.fabric_api_version)) { exclude group: 'net.fabricmc', module: 'fabric-loader' } modIncludeImplementation(fabricApi.module("fabric-screen-api-v1", rootProject.fabric_api_version)) { exclude group: 'net.fabricmc', module: 'fabric-loader' } // Remove the next line if you don't want to depend on the API diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json index 79f1703f..e3f622da 100644 --- a/fabric/src/main/resources/fabric.mod.json +++ b/fabric/src/main/resources/fabric.mod.json @@ -25,6 +25,8 @@ "modernfix-common.mixins.json" ], "depends": { + "fabric-lifecycle-events-v1": "*", + "fabric-screen-api-v1": "*", "minecraft": ">=1.16.5" } } \ No newline at end of file