diff options
author | hackthetime <l4bg0jb7@duck.com> | 2023-11-08 10:48:19 +0100 |
---|---|---|
committer | hackthetime <l4bg0jb7@duck.com> | 2023-11-08 10:48:19 +0100 |
commit | 02e5e5d3a94fcaee3097ef96504448ba81abc61f (patch) | |
tree | 3cf7cee824a5fb3155fe161bc5a3249ce0033fe7 | |
parent | c41eb7f730e7586a69dce21691083f4637c0e595 (diff) | |
download | BBsentials-02e5e5d3a94fcaee3097ef96504448ba81abc61f.tar.gz BBsentials-02e5e5d3a94fcaee3097ef96504448ba81abc61f.tar.bz2 BBsentials-02e5e5d3a94fcaee3097ef96504448ba81abc61f.zip |
fixed a recently added problem and crash.
IMPROVED LOG4J config to not spam the log output anymore at least while in IDE
-rw-r--r-- | common/src/main/java/de/hype/bbsentials/common/client/BBsentials.java | 1 | ||||
-rw-r--r-- | fabric/src/main/java/de/hype/bbsentials/fabric/MCUtils.java | 2 | ||||
-rw-r--r-- | 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(); } @@ -1,6 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <!-- Filter out Hypixel scoreboard and sound errors --> - <RegexFilter regex="Error executing task.*|Unable to play unknown soundEvent.*" onMatch="DENY" + <RegexFilter + regex="Unable to play unknown soundEvent:.* |Signature is missing from Property textures|Received packet for unknown team .*|Ignoring player info update for unknown player .*|Requested creation of existing .*" + onMatch="DENY" onMismatch="NEUTRAL"/> -</Configuration>
\ No newline at end of file + <!-- Filter out other errors --> + <RegexFilter regex="Error executing task.*" onMatch="DENY" onMismatch="NEUTRAL"/> +</Configuration> |