From 59dc4d53b98b011fd91ac505ea5e2b9ce2c812f0 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 29 Dec 2022 22:23:49 +0100 Subject: [PATCH] Use fabwork for networking and to prevent joining servers without the mod installed --- build.gradle | 6 ++++++ gradle.properties | 3 ++- src/main/resources/fabric.mod.json | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 2eccb3d7..df5b1ec0 100644 --- a/build.gradle +++ b/build.gradle @@ -61,6 +61,12 @@ dependencies { modApi "com.jamieswhiteshirt:reach-entity-attributes:${project.reach_attributes_version}" include "com.jamieswhiteshirt:reach-entity-attributes:${project.reach_attributes_version}" + // provides networking and mod handshaking. + // https://github.com/Sollace/Fabwork + // > gradlew build publishToMavenLocal + modApi "com.sollace:fabwork:${project.fabwork_version}" + include "com.sollace:fabwork:${project.fabwork_version}" + modCompileOnly "com.terraformersmc:modmenu:${project.modmenu_version}" modCompileOnly "dev.emi:trinkets:${project.trinkets_version}" } diff --git a/gradle.properties b/gradle.properties index d2b96b9c..be2e9edd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -20,8 +20,9 @@ org.gradle.daemon=false modrinth_project_id= # Dependencies + fabwork_version=1.0.1 modmenu_version=5.0.0-alpha.3 minelp_version=4.7.2 kirin_version=1.13.2 reach_attributes_version=2.3.1 - trinkets_version=3.5.0 \ No newline at end of file + trinkets_version=3.5.0 diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index efd5572e..a1cdf6f6 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -41,6 +41,9 @@ "modmenu": "*" }, "custom": { + "fabwork": { + "requiredOn": "*" + }, "modmenu": { "links": { "modmenu.discord": "https://discord.gg/zKSZ8Mg"