Skip to content

Commit

Permalink
Fix Pluto/Krypton compat and 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Nov 6, 2023
1 parent 9a25832 commit 2ec3c00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public String getRefMapperConfig() {
@Override
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
boolean connectivity = FMLLoader.getLoadingModList().getModFileById("connectivity") != null;
boolean krypton = FMLLoader.getLoadingModList().getModFileById("krypton") != null;
boolean krypton = FMLLoader.getLoadingModList().getModFileById("krypton") != null || FMLLoader.getLoadingModList().getModFileById("pluto") != null;

if (mixinClassName.equalsIgnoreCase("net.tonimatasdev.packetfixerforge.mixin.CompressionDecoderMixin")) return !connectivity;
if (mixinClassName.equalsIgnoreCase("net.tonimatasdev.packetfixerforge.mixin.compat.connectivity.CompressionDecoderMixin")) return connectivity;
if (mixinClassName.equalsIgnoreCase("net.tonimatasdev.packetfixerfabric.mixin.SplitterHandlerMixin") || mixinClassName.equalsIgnoreCase("net.tonimatasdev.packetfixerfabric.mixin.SizePrependerMixin")) {
LogUtils.getLogger().warn("For can't fit X into 3 error fix. Delete Krypton.");
if (mixinClassName.equalsIgnoreCase("net.tonimatasdev.packetfixerforge.mixin.Varint21FrameDecoderMixin") || mixinClassName.equalsIgnoreCase("net.tonimatasdev.packetfixerforge.mixin.Varint21LengthFieldPrependerMixin")) {
LogUtils.getLogger().warn("For can't fit X into 3 error fix. Delete Krypton or Pluto.");
return !krypton;
}

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.1.9
modVersion=1.2.0

minecraftVersion=1.20.2
forgeVersion=48.0.34
Expand Down

0 comments on commit 2ec3c00

Please sign in to comment.