Screen API: Fix MinecraftClientMixin overwriting the vanilla logger (#2726)

(cherry picked from commit 1d4d0b5795)
This commit is contained in:
Juuz 2022-12-11 15:49:32 +02:00 committed by modmuss50
parent 5d5f11fb3d
commit b0bc9a679c

View file

@ -34,7 +34,9 @@ import net.fabricmc.loader.api.FabricLoader;
@Mixin(MinecraftClient.class)
abstract class MinecraftClientMixin {
@Unique
private static final Logger LOGGER = LoggerFactory.getLogger("fabric-screen-api-v1");
@Unique
private static final boolean DEBUG_SCREEN = FabricLoader.getInstance().isDevelopmentEnvironment() || Boolean.getBoolean("fabric.debugScreen");
@Shadow