File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
common/src/main/java/dev/tonimatas/packetfixer/mixins Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 1
1
package dev .tonimatas .packetfixer .mixins ;
2
2
3
3
import dev .tonimatas .packetfixer .util .Config ;
4
- import dev .tonimatas .packetfixer .util .Hooks ;
5
4
import org .objectweb .asm .tree .ClassNode ;
6
5
import org .spongepowered .asm .mixin .extensibility .IMixinConfigPlugin ;
7
6
import org .spongepowered .asm .mixin .extensibility .IMixinInfo ;
@@ -24,18 +23,8 @@ public String getRefMapperConfig() {
24
23
@ SuppressWarnings ("UnreachableCode" )
25
24
@ Override
26
25
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
-
33
26
return true ;
34
27
}
35
-
36
- private boolean check (String mixinClassName , String mixin ) {
37
- return mixinClassName .equalsIgnoreCase ("dev.tonimatas.packetfixer.mixins." + mixin );
38
- }
39
28
40
29
@ Override
41
30
public void acceptTargets (Set <String > myTargets , Set <String > otherTargets ) {
You can’t perform that action at this time.
0 commit comments