fix(know-your-world): restore no-music celebration sounds
Pass startTime in addition to type from Provider to MusicProvider. The previous fix required startTime for deduplication but Provider was only passing type, causing the effect to never trigger. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a8c6b84855
commit
f6d1295c6f
|
|
@ -86,13 +86,12 @@
|
|||
"Bash(npm run lint:*)",
|
||||
"WebFetch(domain:strudel.cc)",
|
||||
"WebFetch(domain:club.tidalcycles.org)",
|
||||
"Bash(git reset:*)"
|
||||
"Bash(git reset:*)",
|
||||
"WebFetch(domain:abaci.one)"
|
||||
],
|
||||
"deny": [],
|
||||
"ask": []
|
||||
},
|
||||
"enableAllProjectMcpServers": true,
|
||||
"enabledMcpjsonServers": [
|
||||
"sqlite"
|
||||
]
|
||||
"enabledMcpjsonServers": ["sqlite"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -600,8 +600,10 @@ export function KnowYourWorldProvider({ children }: { children: React.ReactNode
|
|||
// Music is active when game is in playing phase
|
||||
const isMusicActive = state.gamePhase === 'playing'
|
||||
|
||||
// Pass celebration state to music provider (with type only)
|
||||
const musicCelebration = celebration ? { type: celebration.type } : null
|
||||
// Pass celebration state to music provider (type + startTime for deduplication)
|
||||
const musicCelebration = celebration
|
||||
? { type: celebration.type, startTime: celebration.startTime }
|
||||
: null
|
||||
|
||||
return (
|
||||
<KnowYourWorldContext.Provider
|
||||
|
|
|
|||
Loading…
Reference in New Issue