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");
|
ImGui.text("Installed");
|
||||||
} else {
|
} else {
|
||||||
if (ImGui.button("Add##" + projectId)) {
|
if (ImGui.button("Add##" + projectId)) {
|
||||||
ModrinthVersion latest = ModrinthApi.getLatestVersion(projectId, instance.getGameVersion());
|
ModrinthVersion latest = ModrinthApi.getLatestVersions(projectId, instance.getGameVersion()).latest();
|
||||||
if (latest == null) {
|
if (latest == null) {
|
||||||
LauncherEnv.showError("No valid version could be identified for this mod", "No version found");
|
LauncherEnv.showError("No valid version could be identified for this mod", "No version found");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue