From cbb2586fba5a21bda372dfd78d19236981eefa65 Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+DoctorMacc@users.noreply.github.com> Date: Wed, 8 Jul 2020 18:44:10 -0400 Subject: [PATCH] Don't throw a stack trace when detecting for GUI (#919) --- .../src/main/java/org/geysermc/connector/GeyserConnector.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/connector/src/main/java/org/geysermc/connector/GeyserConnector.java b/connector/src/main/java/org/geysermc/connector/GeyserConnector.java index 601421303..435c1eaad 100644 --- a/connector/src/main/java/org/geysermc/connector/GeyserConnector.java +++ b/connector/src/main/java/org/geysermc/connector/GeyserConnector.java @@ -167,7 +167,9 @@ public class GeyserConnector { try { Class cls = Class.forName("org.geysermc.platform.standalone.GeyserStandaloneBootstrap"); isGui = (boolean) cls.getMethod("isUseGui").invoke(cls.cast(bootstrap)); - } catch (Exception e) { e.printStackTrace(); } + } catch (Exception e) { + logger.debug("Failed detecting if standalone is using a GUI; if this is a GeyserConnect instance this can be safely ignored."); + } } double completeTime = (System.currentTimeMillis() - startupTime) / 1000D;