Skip to content

Commit 637f24d

Browse files
author
tonimatasdev
committed
chore: Remove useless things
1 parent f929c61 commit 637f24d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

common/src/main/java/dev/tonimatas/packetfixer/mixins/MixinConfigPlugin.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package dev.tonimatas.packetfixer.mixins;
22

33
import dev.tonimatas.packetfixer.util.Config;
4-
import dev.tonimatas.packetfixer.util.Hooks;
54
import org.objectweb.asm.tree.ClassNode;
65
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
76
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
@@ -24,18 +23,8 @@ public String getRefMapperConfig() {
2423
@SuppressWarnings("UnreachableCode")
2524
@Override
2625
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
27-
boolean krypton = Hooks.isModLoaded("krypton") || Hooks.isModLoaded("pluto");
28-
29-
if (check(mixinClassName, "Varint21FrameDecoderMixin") || check(mixinClassName, "Varint21LengthFieldPrependerMixin")) {
30-
return !krypton;
31-
}
32-
3326
return true;
3427
}
35-
36-
private boolean check(String mixinClassName, String mixin) {
37-
return mixinClassName.equalsIgnoreCase("dev.tonimatas.packetfixer.mixins." + mixin);
38-
}
3928

4029
@Override
4130
public void acceptTargets(Set<String> myTargets, Set<String> otherTargets) {

0 commit comments

Comments
 (0)