From 425a69ca90524a981a11816b65d038aef4d9c97d Mon Sep 17 00:00:00 2001 From: IThundxr Date: Wed, 31 Jan 2024 20:46:40 -0500 Subject: [PATCH] zeta class shouldnt be getting loaded during mixin apply whoops --- .../org/violetmoon/zeta/api/ConditionalMixinManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/violetmoon/zeta/api/ConditionalMixinManager.java b/src/main/java/org/violetmoon/zeta/api/ConditionalMixinManager.java index e6acca4..79e61e7 100644 --- a/src/main/java/org/violetmoon/zeta/api/ConditionalMixinManager.java +++ b/src/main/java/org/violetmoon/zeta/api/ConditionalMixinManager.java @@ -1,5 +1,7 @@ package org.violetmoon.zeta.api; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; import org.jetbrains.annotations.ApiStatus; import org.objectweb.asm.Type; import org.objectweb.asm.tree.AnnotationNode; @@ -19,6 +21,8 @@ */ @ApiStatus.Internal public class ConditionalMixinManager { + private static final Logger LOGGER = LogManager.getLogger("ZetaConditionalMixinManager"); + public static boolean shouldApply(Zeta zeta, String targetClassName, String mixinClassName) { try { List annotationNodes = MixinService.getService().getBytecodeProvider().getClassNode(targetClassName).visibleAnnotations; @@ -31,7 +35,7 @@ public static boolean shouldApply(Zeta zeta, String targetClassName, String mixi boolean applyIfPresent = Annotations.getValue(node, "applyIfPresent", Boolean.TRUE); boolean anyModsLoaded = areModsLoaded(zeta, mods); shouldApply = anyModsLoaded == applyIfPresent; - Zeta.GLOBAL_LOG.info("{}: {} is{}being applied because the mod(s) {} are{}loaded", zeta.getModDisplayName(zeta.modid), targetClassName, shouldApply ? " " : " not ", mods, anyModsLoaded ? " " : " not "); + LOGGER.info("{}: {} is{}being applied because the mod(s) {} are{}loaded", zeta.getModDisplayName(zeta.modid), targetClassName, shouldApply ? " " : " not ", mods, anyModsLoaded ? " " : " not "); } }