Skip to content

Commit

Permalink
Revamp some mods handling
Browse files Browse the repository at this point in the history
  • Loading branch information
thejudge156 committed Sep 5, 2023
1 parent 6d7f3dd commit bb7d0e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/main/java/pojlib/instance/MinecraftInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,13 @@ public boolean hasCustomMod(String name) {
JsonObject objOld = GsonUtils.jsonFileToObject(modsOld.getAbsolutePath(), JsonObject.class);
for (JsonElement verMod : objOld.getAsJsonArray(this.versionName)) {
JsonObject object = verMod.getAsJsonObject();
String slug = object.get("slug").getAsString().replace("-", " ");
if(name.equals(slug)) {
String slug = object.get("slug").getAsString();
if(name.equalsIgnoreCase(slug)) {
return true;
}
}
}
if(info.name.equals(name)) {
if(info.name.equalsIgnoreCase(name)) {
return true;
}
}
Expand Down

0 comments on commit bb7d0e8

Please sign in to comment.