aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackthetime <l4bg0jb7@duck.com>2023-11-30 09:21:30 +0100
committerhackthetime <l4bg0jb7@duck.com>2023-11-30 09:21:30 +0100
commit83c578173ca2608d194dda02e52952970afdfb52 (patch)
tree20d0906d39bc0cab6ac1f0a372c07cfc024c828c
parent325e0c859eb84c065316a49c96f7ebb3faf8aaea (diff)
downloadBBsentials-83c578173ca2608d194dda02e52952970afdfb52.tar.gz
BBsentials-83c578173ca2608d194dda02e52952970afdfb52.tar.bz2
BBsentials-83c578173ca2608d194dda02e52952970afdfb52.zip
fixed start up joining not working properly
-rw-r--r--common/src/main/java/de/hype/bbsentials/common/client/BBsentials.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/common/src/main/java/de/hype/bbsentials/common/client/BBsentials.java b/common/src/main/java/de/hype/bbsentials/common/client/BBsentials.java
index fbb7824..f662ea7 100644
--- a/common/src/main/java/de/hype/bbsentials/common/client/BBsentials.java
+++ b/common/src/main/java/de/hype/bbsentials/common/client/BBsentials.java
@@ -11,6 +11,7 @@ import java.util.concurrent.ScheduledExecutorService;
public class BBsentials {
public static Config config;
public static BBsentialConnection connection;
+ private static boolean initialised = false;
public static Commands coms;
public static ScheduledExecutorService executionService = Executors.newScheduledThreadPool(1000);
public static boolean splashLobby;
@@ -65,6 +66,11 @@ public class BBsentials {
*/
public static void onServerSwap() {
+ if (!initialised) {
+ if (Config.isBingoTime() || config.overrideBingoTime()) {
+ connectToBBserver();
+ }
+ }
splashLobby = false;
}
@@ -75,8 +81,5 @@ public class BBsentials {
);
debugThread.start();
debugThread.setName("Debug Thread");
- if (Config.isBingoTime() || config.overrideBingoTime()) {
- connectToBBserver();
- }
}
} \ No newline at end of file