Replace dots in artifact names as well when generating mod jsons for JIJ (#173)

This commit is contained in:
Juuxel 2020-01-18 19:23:33 +02:00 committed by modmuss50
parent cd202f2804
commit 045548a11d

View file

@ -194,7 +194,7 @@ public class NestedJars {
private static String getMod(Dependency dependency) {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("schemaVersion", 1);
jsonObject.addProperty("id", (dependency.getGroup().replaceAll("\\.", "_") + "_" + dependency.getName()).toLowerCase(Locale.ENGLISH));
jsonObject.addProperty("id", (dependency.getGroup() + "_" + dependency.getName()).replaceAll("\\.", "_").toLowerCase(Locale.ENGLISH));
jsonObject.addProperty("version", dependency.getVersion());
jsonObject.addProperty("name", dependency.getName());