Skip to content

Commit

Permalink
Fix a few mods being incorrectly illegal
Browse files Browse the repository at this point in the history
  • Loading branch information
DuncanRuns committed Jun 17, 2024
1 parent f32865e commit c275a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/xyz/duncanruns/julti/util/LegalModsUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ private static Set<String> obtainLegalMods() throws IOException {
return GrabUtil.grabJson("https://raw.githubusercontent.com/tildejustin/mcsr-meta/schema-6/mods.json")
.getAsJsonArray("mods").asList().stream()
.map(JsonElement::getAsJsonObject)
.map(j -> j.get("modid").getAsString()).collect(Collectors.toSet());
.map(j -> j.get("modid").getAsString().replaceAll("[-_]", "")).collect(Collectors.toSet());
}
}

0 comments on commit c275a72

Please sign in to comment.