Skip to content

Commit

Permalink
Fix #46
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Aug 15, 2024
1 parent f6f57ca commit 55c253e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@ public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
boolean connectivity = Hooks.isModLoaded("connectivity");
boolean krypton = Hooks.isModLoaded("krypton") || Hooks.isModLoaded("pluto");
boolean immersivePortals = Hooks.isModLoaded("immersive_portals");
boolean theVault = Hooks.isModLoaded("the_vault");

if (MixinCheck.with(mixinClassName, "CompressionDecoderMixin")) return !connectivity;
if (MixinCheck.with(mixinClassName, "compat.connectivity.CompressionDecoderMixin")) return connectivity;
if (MixinCheck.with(mixinClassName, "Varint21FrameDecoderMixin") ||
MixinCheck.with(mixinClassName, "Varint21LengthFieldPrependerMixin")) return !krypton;
if (MixinCheck.with(mixinClassName, "ClientboundCustomPayloadPacketMixin")) return !immersivePortals;
if (MixinCheck.with(mixinClassName, "Varint21FrameDecoderMixin") || MixinCheck.with(mixinClassName, "Varint21LengthFieldPrependerMixin")) return !krypton;
if (MixinCheck.with(mixinClassName, "ClientboundCustomPayloadPacketMixin")) return (!immersivePortals && !theVault);
if (MixinCheck.with(mixinClassName, "ServerboundCustomPayloadPacketMixin")) return !theVault;
if (MixinCheck.with(mixinClassName, "ClientboundCustomQueryPacketMixin")) return !theVault;
if (MixinCheck.with(mixinClassName, "ServerboundCustomQueryPacketMixin")) return !theVault;
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

# Mod Properties
modVersion=1.4.2
modVersion=1.4.3

# Minecraft
minecraftVersion=1.18.2
Expand Down

0 comments on commit 55c253e

Please sign in to comment.