Fix example implementation of using FAPI modules for Groovy ()

* 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
This commit is contained in:
Maity 2020-12-30 19:42:33 +03:00 committed by GitHub
parent ae85d92960
commit a404f47683
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)))
}
```