From a404f476830f6fa2ccbda17bad6cb1e818b8369d Mon Sep 17 00:00:00 2001 From: Maity <47220489+maityyy@users.noreply.github.com> Date: Wed, 30 Dec 2020 19:42:33 +0300 Subject: [PATCH] Fix example implementation of using FAPI modules for Groovy (#1237) * Fix example implementation of using FAPI modules for Groovy The previous implementation does not quite correctly describe what it does * Improve description of adding dependencies * Undo the last commit changes for Kotlin DSL --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 95c59c8fd..847cf1217 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ modImplementation "net.fabricmc.fabric-api:fabric-api:FABRIC_API_VERSION" modImplementation("net.fabricmc.fabric-api:fabric-api:FABRIC_API_VERSION") ``` -Alternatively, modules from Fabric API can be specified individually as shown below: +Alternatively, modules from Fabric API can be specified individually as shown below (including module jar to your mod jar): ### Groovy DSL @@ -54,7 +54,7 @@ Set<String> apiModules = [ // Add each module as a dependency apiModules.forEach { - modImplementation(fabricApi.module(it, FABRIC_API_VERSION)) + include(modImplementation(fabricApi.module(it, FABRIC_API_VERSION))) } ```