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.dev/0.11
parent
9917f30518
commit
86577525cd
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue