Potentially fix issue in obfuscated environment

This commit is contained in:
Brady 2018-08-23 19:05:54 -05:00
parent 8ef71da481
commit 85c88e669c
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -64,8 +64,7 @@ public abstract class MixinNetworkManager {
at = @At(
value = "INVOKE",
target = "net/minecraft/network/Packet.processPacket(Lnet/minecraft/network/INetHandler;)V"
),
remap = false
)
)
private void preProcessPacket(ChannelHandlerContext context, Packet<?> packet, CallbackInfo ci) {
Baritone.INSTANCE.getGameEventHandler().onReceivePacket(new PacketEvent(EventState.PRE, packet));
@ -73,8 +72,7 @@ public abstract class MixinNetworkManager {
@Inject(
method = "channelRead0",
at = @At("RETURN"),
remap = false
at = @At("RETURN")
)
private void postProcessPacket(ChannelHandlerContext context, Packet<?> packet, CallbackInfo ci) {
if (this.channel.isOpen())