Skip to content

Commit

Permalink
Merge pull request astei#28 from manyrandomthings/master
Browse files Browse the repository at this point in the history
Fix packets sent counter on F3 menu
  • Loading branch information
astei authored May 25, 2021
2 parents 69339e0 + 39485cc commit de85c46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private void initAddedFields(CallbackInfo ci) {
@Inject(locals = LocalCapture.CAPTURE_FAILHARD,
cancellable = true,
method = "sendImmediately",
at = @At(value = "FIELD", target = "Lnet/minecraft/network/ClientConnection;packetsSentCounter:I", opcode = Opcodes.GETFIELD, shift = At.Shift.AFTER))
at = @At(value = "FIELD", target = "Lnet/minecraft/network/ClientConnection;packetsSentCounter:I", opcode = Opcodes.PUTFIELD, shift = At.Shift.AFTER))
private void sendImmediately$rewrite(Packet<?> packet, @Nullable GenericFutureListener<? extends Future<? super Void>> callback, CallbackInfo info, NetworkState packetState, NetworkState protocolState) {
boolean newState = packetState != protocolState;

Expand Down

0 comments on commit de85c46

Please sign in to comment.