Skip to main content

Module health_sync

Module health_sync 

Source
Expand description

Delta-tracking state for CSetHealth packet deduplication.

Tracks the last health/food/saturation values sent to the client so we only send CSetHealth when something actually changes.

Vanilla: ServerPlayer.lastSentHealth, lastSentFood, lastFoodSaturationZero.

Structsยง

HealthSyncState
Tracks the last health/food/saturation values sent to the client.