From 85c88e669c8d19faea0bf207f178d8d8e7b48939 Mon Sep 17 00:00:00 2001 From: Brady Date: Thu, 23 Aug 2018 19:05:54 -0500 Subject: [PATCH] Potentially fix issue in obfuscated environment --- .../java/baritone/launch/mixins/MixinNetworkManager.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/baritone/launch/mixins/MixinNetworkManager.java b/src/main/java/baritone/launch/mixins/MixinNetworkManager.java index 63e302d7..48da859f 100644 --- a/src/main/java/baritone/launch/mixins/MixinNetworkManager.java +++ b/src/main/java/baritone/launch/mixins/MixinNetworkManager.java @@ -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())