docs: update stale samePetRevision comment reference

The helper was extracted and renamed to hasPetSpriteForMeta +
mergePetInfoMeta; the pet.changed comment still cited the old name.
This commit is contained in:
kshitijk4poor 2026-08-03 10:21:07 +05:30 committed by kshitij
parent 1573829a7c
commit cb0226d4ae
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ export function FloatingPet() {
// pet.changed already carries the meta payload — an enabled=false
// broadcast clears the mascot with zero round-trips, and an unchanged
// revision (scale-only move still changes the sig) short-circuits below
// via samePetRevision.
// via hasPetSpriteForMeta + mergePetInfoMeta.
if (changeEventsAvailable && petChange.tick > 0 && petChange.meta?.enabled === false) {
setPetInfo({ enabled: false })