Skip to content

Commit

Permalink
chore: Remove useless things
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Feb 11, 2025
1 parent f929c61 commit 637f24d
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package dev.tonimatas.packetfixer.mixins;

import dev.tonimatas.packetfixer.util.Config;
import dev.tonimatas.packetfixer.util.Hooks;
import org.objectweb.asm.tree.ClassNode;
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
Expand All @@ -24,18 +23,8 @@ public String getRefMapperConfig() {
@SuppressWarnings("UnreachableCode")
@Override
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
boolean krypton = Hooks.isModLoaded("krypton") || Hooks.isModLoaded("pluto");

if (check(mixinClassName, "Varint21FrameDecoderMixin") || check(mixinClassName, "Varint21LengthFieldPrependerMixin")) {
return !krypton;
}

return true;
}

private boolean check(String mixinClassName, String mixin) {
return mixinClassName.equalsIgnoreCase("dev.tonimatas.packetfixer.mixins." + mixin);
}

@Override
public void acceptTargets(Set<String> myTargets, Set<String> otherTargets) {
Expand Down

0 comments on commit 637f24d

Please sign in to comment.