浏览代码

modApi cloth config

Signed-off-by: shedaniel <daniel@shedaniel.me>
shedaniel 5 年之前
父节点
当前提交
8df8f837bd
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      build.gradle
  2. 1 1
      gradle.properties

+ 2 - 1
build.gradle

@@ -55,7 +55,7 @@ dependencies {
     modApi("me.shedaniel.cloth:cloth-events:${cloth_events_version}") {
         transitive = false
     }
-    modImplementation("me.shedaniel.cloth:config-2:${cloth_config_version}") {
+    modApi("me.shedaniel.cloth:config-2:${cloth_config_version}") {
         exclude module: "fabric-api"
     }
     modApi("me.sargunvohra.mcmods:autoconfig1u:${project.autoconfig1u}") {
@@ -73,6 +73,7 @@ dependencies {
             def listAdded = new ArrayList(Arrays.asList((api_exculde as String).split(',')))
             def eachDep = { dep ->
                 for (apiIncludeDepStr in (api_include as String).split(',')) {
+                    if (apiIncludeDepStr.isEmpty()) continue
                     def apiIncludeGroup = apiIncludeDepStr.split(':')[0]
                     def apiIncludeDep = apiIncludeDepStr.split(':')[1]
                     if (dep.module.id.group == apiIncludeGroup && dep.module.id.name.startsWith(apiIncludeDep)) {

+ 1 - 1
gradle.properties

@@ -1,4 +1,4 @@
-mod_version=4.3.1-unstable
+mod_version=4.3.2-unstable
 supported_version=20w18a
 minecraft_version=20w18a
 yarn_version=20w18a+build.1