Skip to content

Commit

Permalink
Fixed mixin not applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Taskeren committed May 1, 2023
1 parent 7bd588c commit 5df8140
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
5 changes: 3 additions & 2 deletions src/main/java/cn/taskeren/gtnn/mixinplugin/TargetedMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.google.common.io.Files;

import java.nio.file.Path;
import java.util.Locale;

@SuppressWarnings({"UnstableApiUsage"})
public enum TargetedMod {
Expand All @@ -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;
}

Expand Down

0 comments on commit 5df8140

Please sign in to comment.