From 02e5e5d3a94fcaee3097ef96504448ba81abc61f Mon Sep 17 00:00:00 2001 From: hackthetime Date: Wed, 8 Nov 2023 10:48:19 +0100 Subject: fixed a recently added problem and crash. IMPROVED LOG4J config to not spam the log output anymore at least while in IDE --- .../main/java/de/hype/bbsentials/common/client/BBsentials.java | 1 - fabric/src/main/java/de/hype/bbsentials/fabric/MCUtils.java | 2 +- log4j2.xml | 8 ++++++-- 3 files changed, 7 insertions(+), 4 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 20fb7ef..262ed8d 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 @@ -71,7 +71,6 @@ public class BBsentials { public static void init() { config = Config.load(); executionService.scheduleAtFixedRate(EnvironmentCore.debug, 0, 20, TimeUnit.SECONDS); - if (config.doGammaOverride) EnvironmentCore.mcoptions.setGamma(10); if (Config.isBingoTime() || config.overrideBingoTime()) { connectToBBserver(); } diff --git a/fabric/src/main/java/de/hype/bbsentials/fabric/MCUtils.java b/fabric/src/main/java/de/hype/bbsentials/fabric/MCUtils.java index 4fea7fd..26d2872 100644 --- a/fabric/src/main/java/de/hype/bbsentials/fabric/MCUtils.java +++ b/fabric/src/main/java/de/hype/bbsentials/fabric/MCUtils.java @@ -26,7 +26,7 @@ public class MCUtils implements de.hype.bbsentials.common.mclibraries.MCUtils { } public String getMCUUID() { - return MinecraftClient.getInstance().player.getUuid().toString(); + return MinecraftClient.getInstance().getSession().getUuidOrNull().toString(); } diff --git a/log4j2.xml b/log4j2.xml index 294b37b..b68aae3 100644 --- a/log4j2.xml +++ b/log4j2.xml @@ -1,6 +1,10 @@ - - \ No newline at end of file + + + -- cgit