File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
forge/src/main/java/dev/tonimatas/packetfixer/mixins Expand file tree Collapse file tree 2 files changed +4
-1
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 net .minecraftforge .fml .common .Loader ;
4
5
import org .objectweb .asm .tree .ClassNode ;
5
6
import org .spongepowered .asm .mixin .extensibility .IMixinConfigPlugin ;
6
7
import org .spongepowered .asm .mixin .extensibility .IMixinInfo ;
@@ -22,6 +23,8 @@ public String getRefMapperConfig() {
22
23
@ SuppressWarnings ("UnreachableCode" )
23
24
@ Override
24
25
public boolean shouldApplyMixin (String targetClassName , String mixinClassName ) {
26
+ if (check (mixinClassName , "PacketBufferMixin" )) return !Loader .isModLoaded ("randompatches" );
27
+
25
28
return true ;
26
29
}
27
30
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ org.gradle.jvmargs=-Xmx3G
2
2
org.gradle.daemon =false
3
3
4
4
# Mod Properties
5
- modVersion =1.0.0
5
+ modVersion =1.0.1
6
6
7
7
minecraftVersion =1.12.2
You can’t perform that action at this time.
0 commit comments