diff --git a/gradle.properties b/gradle.properties index 4950f0d..bad42ed 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=3.0.0 +version=3.0.1 diff --git a/src/main/java/org/moddingx/modlistcreator/curse/CurseModpack.java b/src/main/java/org/moddingx/modlistcreator/curse/CurseModpack.java index e602e4f..52cbf96 100644 --- a/src/main/java/org/moddingx/modlistcreator/curse/CurseModpack.java +++ b/src/main/java/org/moddingx/modlistcreator/curse/CurseModpack.java @@ -50,10 +50,10 @@ private CurseModpack(JsonElement element) throws IOException, NullPointerExcepti json.get("files").getAsJsonArray().forEach(file -> { projectIds.add(file.getAsJsonObject().get("projectID").getAsInt()); }); - Map projectInfoMap = wrapper.getProjects(projectIds); + Map projectInfoMap = wrapper.getProjects(projectIds); int i = 0; - final Integer total = json.get("files").getAsJsonArray().size(); + final int total = projectIds.size(); for (JsonElement fileElement : json.get("files").getAsJsonArray()) { JsonObject file = fileElement.getAsJsonObject();