Skip to content

Commit e9925ef

Browse files
committed
Merge branch 'release/5.0.4'
2 parents f960b08 + 33257f2 commit e9925ef

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ repositories {
3333
}
3434

3535
dependencies {
36-
implementation("com.gravitlauncher.launcher:launcher-runtime:5.7.4")
36+
implementation("com.gravitlauncher.launcher:launcher-runtime:5.7.5")
3737
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
3838
testImplementation(platform("org.junit:junit-bom:5.10.0"))
3939
testImplementation("org.junit.jupiter:junit-jupiter")

src/main/java/pro/gravit/launcher/gui/JavaRuntimeModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class JavaRuntimeModule extends LauncherModule {
3030

3131
public JavaRuntimeModule() {
3232
super(new LauncherModuleInfo("StdJavaRuntime",
33-
new Version(5, 0, 0, 3, Version.Type.BETA),
33+
new Version(5, 0, 0, 4, Version.Type.BETA),
3434
0, new String[]{}, new String[]{"runtime"}));
3535
}
3636

src/main/java/pro/gravit/launcher/gui/scenes/servermenu/ServerMenuScene.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
import pro.gravit.launcher.gui.scenes.interfaces.SceneSupportUserBlock;
1717
import pro.gravit.utils.helper.CommonHelper;
1818

19-
import java.util.ArrayList;
20-
import java.util.LinkedHashMap;
21-
import java.util.List;
22-
import java.util.Map;
19+
import java.util.*;
2320

2421
public class ServerMenuScene extends FxScene implements SceneSupportUserBlock {
2522
private UserBlock userBlock;
@@ -58,7 +55,7 @@ public void reset() {
5855
Map<ProfileFeatureAPI.ClientProfile, ServerButtonCache> serverButtonCacheMap = new LinkedHashMap<>();
5956

6057
List<ProfileFeatureAPI.ClientProfile> profiles = new ArrayList<>(application.profileService.getProfiles());
61-
//profiles.sort(Comparator.comparingInt(ClientProfile::getSortIndex).thenComparing(ClientProfile::getTitle));
58+
profiles.sort(Comparator.comparing(ProfileFeatureAPI.ClientProfile::getName));
6259
int position = 0;
6360
for (var profile : profiles) {
6461
ServerButtonCache cache = new ServerButtonCache();

0 commit comments

Comments
 (0)