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

dev/0.11
Juuxel 2020-01-18 19:23:33 +02:00 committed by modmuss50
parent cd202f2804
commit 045548a11d
1 changed files with 1 additions and 1 deletions

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());