From 46f1193d32c8bedbdef23cca214314606cbe9261 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Tue, 25 Jun 2024 21:55:36 +0200 Subject: [PATCH] make playerselector handle PlayerLeftView better, fix clientboot bug --- .../client/feature/modules/experimental/PlayerSelector.java | 2 +- Loader/src/main/java/de/com/baseband/launcher/Loader.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/src/main/java/de/com/baseband/client/feature/modules/experimental/PlayerSelector.java b/Client/src/main/java/de/com/baseband/client/feature/modules/experimental/PlayerSelector.java index 35270c9..2d27d5b 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/modules/experimental/PlayerSelector.java +++ b/Client/src/main/java/de/com/baseband/client/feature/modules/experimental/PlayerSelector.java @@ -120,7 +120,7 @@ public class PlayerSelector extends Feature { public void onPlayerLeftView(PlayerLeftViewEvent event) { if(event.index == cursor) mode = Mode.LIST; - if(event.index >= cursor && cursor > 0) + if(event.index <= cursor && cursor > 0) cursor--; } diff --git a/Loader/src/main/java/de/com/baseband/launcher/Loader.java b/Loader/src/main/java/de/com/baseband/launcher/Loader.java index b9fe398..1fcb952 100644 --- a/Loader/src/main/java/de/com/baseband/launcher/Loader.java +++ b/Loader/src/main/java/de/com/baseband/launcher/Loader.java @@ -188,6 +188,7 @@ public class Loader implements Util { x1.data.set("do-not-join", new TCNArray()); else x1.data.set("do-not-join", new TCNArray(Arrays.asList(list.split(", *")))); + x1.focus(); }) .option("Back", ClientBoot::back); })