diff --git a/lib/src/main/java/pojlib/instance/MinecraftInstance.java b/lib/src/main/java/pojlib/instance/MinecraftInstance.java index 721091ab..07d00936 100644 --- a/lib/src/main/java/pojlib/instance/MinecraftInstance.java +++ b/lib/src/main/java/pojlib/instance/MinecraftInstance.java @@ -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; } }