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

This commit is contained in:
Juuz 2022-12-11 15:49:32 +02:00 committed by GitHub
parent 33cd7c5a40
commit 1d4d0b5795
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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