Skip to content

Commit

Permalink
Fix Immersive Portals compat
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Jun 10, 2024
1 parent aa061f4 commit ad64cc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ public String getRefMapperConfig() {
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");

if (MixinCheck.with(mixinClassName, "CompressionDecoderMixin")) {
if (connectivity) {
LogUtils.getLogger().warn("You are using connectivity for fix \"Badly compressed packet - size of \" + X + \" is larger than protocol maximum of 8388608\" if you have and issue with that delete connectivity.");
return false;
}
}

if (MixinCheck.with(mixinClassName, "Varint21FrameDecoderMixin") || MixinCheck.with(mixinClassName, "Varint21LengthFieldPrependerMixin")) return !krypton;


if (MixinCheck.with(mixinClassName, "ClientboundCustomPayloadPacketMixin")) return !immersivePortals;

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.1
modVersion=1.4.2

# Minecraft
minecraftVersion=1.20.1
Expand Down

0 comments on commit ad64cc5

Please sign in to comment.