aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/fabricmc/loom
diff options
context:
space:
mode:
authorHephaestus-Dev <54509200+Hephaestus-Dev@users.noreply.github.com>2020-10-08 12:42:07 -0700
committerGitHub <noreply@github.com>2020-10-08 20:42:07 +0100
commit86577525cdc72198727490dff37530dfaf013c88 (patch)
tree1690a5e9307d0b25c9ef6ce6c5091c6846d672a0 /src/main/java/net/fabricmc/loom
parent9917f30518b61183c95451a502689300f12523c5 (diff)
downloadarchitectury-loom-86577525cdc72198727490dff37530dfaf013c88.tar.gz
architectury-loom-86577525cdc72198727490dff37530dfaf013c88.tar.bz2
architectury-loom-86577525cdc72198727490dff37530dfaf013c88.zip
Mark auto-generated mods with a custom value (#271)
* Make the barebones `fabric.mod.json` generated for non-mod dependencies an API for ModMenu purposes to prevent large mods with many dependencies from cluttering the menu. * Changed from providing `modmenu:api` to `fabric-loom:generated` to be agnostic about third party mod usage.
Diffstat (limited to 'src/main/java/net/fabricmc/loom')
-rw-r--r--src/main/java/net/fabricmc/loom/util/NestedJars.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/net/fabricmc/loom/util/NestedJars.java b/src/main/java/net/fabricmc/loom/util/NestedJars.java
index bdb7ed4f..2d57c8c0 100644
--- a/src/main/java/net/fabricmc/loom/util/NestedJars.java
+++ b/src/main/java/net/fabricmc/loom/util/NestedJars.java
@@ -224,6 +224,10 @@ public class NestedJars {
jsonObject.addProperty("version", dependency.getModuleVersion());
jsonObject.addProperty("name", dependency.getModuleName());
+ JsonObject custom = new JsonObject();
+ custom.addProperty("fabric-loom:generated", true);
+ jsonObject.add("custom", custom);
+
return GSON.toJson(jsonObject);
}