Skip to content

Commit

Permalink
apply suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
olim88 committed Sep 18, 2024
1 parent 7fec399 commit 3c543c9
Show file tree
Hide file tree
Showing 3 changed files with 438 additions and 438 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ private void onPlayerTeleported(PlayerPositionLookS2CPacket packet, CallbackInfo
SmoothAOTE.playerTeleported();
}

@WrapOperation(method = "tick", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/hud/DebugHud;shouldShowPacketSizeAndPingCharts()Z"))
private boolean shouldShowPacketSizeAndPingCharts(DebugHud instance, Operation<Boolean> original) {
@ModifyExpressionValue(method = "tick", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/hud/DebugHud;shouldShowPacketSizeAndPingCharts()Z"))
private boolean shouldShowPacketSizeAndPingCharts(boolean original) {
//make the f3+3 screen always send ping packets even when closed
//this is needed to make smooth AOTE work
if (Utils.isOnSkyblock()) {
return true;
}
return original.call(instance);
return original;

}
}
Loading

0 comments on commit 3c543c9

Please sign in to comment.