Skip to content

Commit

Permalink
Suspend client-only inventory preview sync when player is sneaking (#95)
Browse files Browse the repository at this point in the history
Signed-off-by: Hendrix-Shen <[email protected]>
  • Loading branch information
Hendrix-Shen committed Jul 24, 2023
1 parent 03fb41f commit b2cde21
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class InventoryPreviewSyncDataClientOnlyUtil {
public static void onHitCallback(@Nullable HitResult hitResult, boolean oldStatus, boolean stateChanged) {
Minecraft mc = Minecraft.getInstance();
if (!Configs.inventoryPreviewSyncDataClientOnly ||
mc.player == null || mc.player.isShiftKeyDown() ||
(Configs.inventoryPreviewSyncData && PcaSyncProtocol.enable) ||
mc.hasSingleplayerServer() ||
!FeatureToggle.TWEAK_INVENTORY_PREVIEW.getBooleanValue()
Expand Down

0 comments on commit b2cde21

Please sign in to comment.