Skip to content

Commit

Permalink
Fix problems with CompressionEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Sep 2, 2023
1 parent 7e5a5a4 commit 27a5cb1
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 15 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package net.tonimatasdev.packetfixerforge.mixin;

import org.objectweb.asm.tree.ClassNode;
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;

import java.util.List;
import java.util.Set;

public class MixinConfigPlugin implements IMixinConfigPlugin {

@Override
public void onLoad(String mixinPackage) {
System.getProperties().setProperty("forge.disablePacketCompressionDebug", "true");
}

@Override
public String getRefMapperConfig() {
return null;
}

@Override
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
return true;
}

@Override
public void acceptTargets(Set<String> myTargets, Set<String> otherTargets) {

}

@Override
public List<String> getMixins() {
return null;
}

@Override
public void preApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) {

}

@Override
public void postApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) {

}
}
2 changes: 1 addition & 1 deletion forge/src/main/resources/packetfixer.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"package": "net.tonimatasdev.packetfixerforge.mixin",
"compatibilityLevel": "JAVA_17",
"refmap": "packetfixer.refmap.json",
"plugin": "net.tonimatasdev.packetfixerforge.mixin.MixinConfigPlugin",
"injectors": {
"defaultRequire": 1
},
"mixins": [
"ClientboundCustomPayloadPacketMixin",
"ClientboundCustomQueryPacketMixin",
"CompressionDecoderMixin",
"CompressionEncoderMixin",
"NbtAccounterMixin",
"PacketEncoderMixin",
"ServerboundCustomPayloadPacketMixin",
Expand Down

0 comments on commit 27a5cb1

Please sign in to comment.