From 5df8140129c72ceeca755fa99bb8eef61fb186d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A5=93?= Date: Mon, 1 May 2023 14:05:01 +0800 Subject: [PATCH] Fixed mixin not applied --- .../gtnn/mixin/gt5u/GTMetaTileEntityLightningRodMixin.java | 2 +- src/main/java/cn/taskeren/gtnn/mixinplugin/TargetedMod.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/cn/taskeren/gtnn/mixin/gt5u/GTMetaTileEntityLightningRodMixin.java b/src/main/java/cn/taskeren/gtnn/mixin/gt5u/GTMetaTileEntityLightningRodMixin.java index 8d558d6..0ca4fca 100644 --- a/src/main/java/cn/taskeren/gtnn/mixin/gt5u/GTMetaTileEntityLightningRodMixin.java +++ b/src/main/java/cn/taskeren/gtnn/mixin/gt5u/GTMetaTileEntityLightningRodMixin.java @@ -13,7 +13,7 @@ public class GTMetaTileEntityLightningRodMixin { @Redirect(method = "onPostTick", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/World;setBlockToAir(III)Z"), remap = true) private boolean nn$onWorldSetBlockToAir(World world, int x, int y, int z) { - GTNN.logger.debug("Prevented a Lightning Rod breaking at " + ToStringHelper.vecToString(x, y, z)); + GTNN.logger.info("Prevented a Lightning Rod breaking at " + ToStringHelper.vecToString(x, y, z)); return true; } diff --git a/src/main/java/cn/taskeren/gtnn/mixinplugin/TargetedMod.java b/src/main/java/cn/taskeren/gtnn/mixinplugin/TargetedMod.java index 3f0c859..50e724a 100644 --- a/src/main/java/cn/taskeren/gtnn/mixinplugin/TargetedMod.java +++ b/src/main/java/cn/taskeren/gtnn/mixinplugin/TargetedMod.java @@ -3,6 +3,7 @@ import com.google.common.io.Files; import java.nio.file.Path; +import java.util.Locale; @SuppressWarnings({"UnstableApiUsage"}) public enum TargetedMod { @@ -19,9 +20,9 @@ public enum TargetedMod { this(modName, jarNamePrefixAnyCase, true); } - TargetedMod(String modName, String jarNamePrefixLowercase, boolean shouldLoadInDev) { + TargetedMod(String modName, String jarNamePrefixAnyCase, boolean shouldLoadInDev) { this.modName = modName; - this.jarNamePrefixLowercase = jarNamePrefixLowercase; + this.jarNamePrefixLowercase = jarNamePrefixAnyCase.toLowerCase(Locale.US); this.shouldLoadInDev = shouldLoadInDev; }