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 --- fabric/src/main/java/de/hype/bbsentials/fabric/MCUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fabric') 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(); } -- cgit