Skip to content

Commit 8d9b2df

Browse files
committed
update
1 parent f2f91f6 commit 8d9b2df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModUpdatesPage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ private static final class ModDetail extends JFXDialogLayout {
372372

373373
public ModDetail(ModUpdateObject object) {
374374
this.repository = object.data.getRepository();
375-
RemoteMod.Version targetVersion = object.data.getCandidates().get(0);
375+
RemoteMod.Version targetVersion = object.data.getCandidate();
376376
String source = object.getSource();
377377

378378
this.setHeading(new HBox(new Label(i18n("mods.check_updates.update_mod", targetVersion.getName()))));
@@ -413,7 +413,7 @@ private void loadChangelog(ModUpdateObject object, SpinnerPane spinnerPane, Scro
413413
if (object.changelog != null) {
414414
return Optional.of(object.changelog);
415415
}
416-
RemoteMod.Version version = object.data.getCandidates().get(0);
416+
RemoteMod.Version version = object.data.getCandidate();
417417
if (version.getChangelog() != null) {
418418
return StringUtils.nullIfBlank(version.getChangelog());
419419
}

0 commit comments

Comments
 (0)