fix: update AddModWindow for ModrinthApi change
This commit is contained in:
parent
b1b82c423a
commit
98cc37405a
|
@ -93,7 +93,7 @@ public class AddModWindow extends Window {
|
|||
ImGui.text("Installed");
|
||||
} else {
|
||||
if (ImGui.button("Add##" + projectId)) {
|
||||
ModrinthVersion latest = ModrinthApi.getLatestVersion(projectId, instance.getGameVersion());
|
||||
ModrinthVersion latest = ModrinthApi.getLatestVersions(projectId, instance.getGameVersion()).latest();
|
||||
if (latest == null) {
|
||||
LauncherEnv.showError("No valid version could be identified for this mod", "No version found");
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue