diff --git a/gradle.properties b/gradle.properties index c63afe2..b36fb2b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,4 +6,4 @@ org.gradle.configureondemand=true # Project properties maven_name=ViaProxy maven_group=net.raphimc -maven_version=3.0.2 +maven_version=3.0.3 diff --git a/src/main/java/net/raphimc/viaproxy/ViaProxy.java b/src/main/java/net/raphimc/viaproxy/ViaProxy.java index ab76c16..b7307e5 100644 --- a/src/main/java/net/raphimc/viaproxy/ViaProxy.java +++ b/src/main/java/net/raphimc/viaproxy/ViaProxy.java @@ -110,6 +110,10 @@ public class ViaProxy { updateCheckThread.start(); loaderThread.join(); accountRefreshThread.join(); + while (ui[0] == null) { + Logger.LOGGER.info("Waiting for UI to be initialized..."); + Thread.sleep(1000); + } ui[0].setReady(); Logger.LOGGER.info("ViaProxy started successfully!"); return;