fix: update AddModWindow for ModrinthApi change

This commit is contained in:
Johannes Frohnmeyer 2023-08-19 16:19:50 +02:00
parent b1b82c423a
commit 98cc37405a
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 1 additions and 1 deletions

View File

@ -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 {