Skip to content

Commit 9cb5305

Browse files
author
TonimatasDEV
committed
Fix crash with RandomPatches
1 parent 6a91549 commit 9cb5305

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

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

33
import dev.tonimatas.packetfixer.util.Config;
4+
import net.minecraftforge.fml.common.Loader;
45
import org.objectweb.asm.tree.ClassNode;
56
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
67
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
@@ -22,6 +23,8 @@ public String getRefMapperConfig() {
2223
@SuppressWarnings("UnreachableCode")
2324
@Override
2425
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
26+
if (check(mixinClassName, "PacketBufferMixin")) return !Loader.isModLoaded("randompatches");
27+
2528
return true;
2629
}
2730

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ org.gradle.jvmargs=-Xmx3G
22
org.gradle.daemon=false
33

44
# Mod Properties
5-
modVersion=1.0.0
5+
modVersion=1.0.1
66

77
minecraftVersion=1.12.2

0 commit comments

Comments
 (0)