From 74dd3a232acffcc3aa8c12a884c96a49fd8855ca Mon Sep 17 00:00:00 2001 From: Madis Date: Fri, 8 Dec 2023 12:19:39 +0100 Subject: [PATCH] Make it depend on FAPI --- build.gradle | 10 ++-------- src/main/resources/fabric.mod.json | 7 ++----- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/build.gradle b/build.gradle index 8bb13c3d..7dfc0eb4 100644 --- a/build.gradle +++ b/build.gradle @@ -78,12 +78,6 @@ dependencies { modApi("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}") { exclude(group: "net.fabricmc.fabric-api") } - - include(fabricApi.module("fabric-api-base", project.fabric_version)) - modImplementation include(fabricApi.module("fabric-networking-api-v1", project.fabric_version)) - modImplementation include(fabricApi.module("fabric-screen-api-v1", project.fabric_version)) - modImplementation include(fabricApi.module("fabric-rendering-v1", project.fabric_version)) - modImplementation include(fabricApi.module("fabric-resource-loader-v0", project.fabric_version)) } sourceSets.remove(sourceSets.test) @@ -158,7 +152,7 @@ curseforge { addGameVersion 'Java 17' relations { - embeddedLibrary 'fabric-api' + requiredDependency 'fabric-api' optionalDependency 'modmenu' optionalDependency 'cloth-config' } @@ -190,7 +184,7 @@ modrinth { dependencies { // The scope can be `required`, `optional`, or `incompatible` - embedded.project "fabric-api" + required.project "fabric-api" optional.project "modmenu" optional.project "cloth-config" } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 2ae972e0..56eb452e 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -39,11 +39,8 @@ "depends": { "fabricloader": ">=0.14.6", - "fabric-networking-api-v1": "*", - "fabric-screen-api-v1": "*", - "fabric-rendering-v1": "*", - "fabric-resource-loader-v0": "*", - "minecraft": [ ">=1.20" ], + "fabric-api": "*", + "minecraft": [ ">=1.20.3" ], "java": ">=17" }, "suggests": {},