mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 21:47:42 -05:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user