diff --git a/src/soundSystem.ts b/src/soundSystem.ts index 773d2be8..c63c1575 100644 --- a/src/soundSystem.ts +++ b/src/soundSystem.ts @@ -8,6 +8,7 @@ import { options } from './optionsStorage' import { loadOrPlaySound } from './basicSounds' subscribeKey(miscUiState, 'gameLoaded', async () => { + if (!miscUiState.gameLoaded) return const soundsLegacyMap = window.allSoundsVersionedMap as Record const allSoundsMap = window.allSoundsMap as Record> const allSoundsMeta = window.allSoundsMeta as { format: string, baseUrl: string } @@ -182,7 +183,7 @@ subscribeKey(miscUiState, 'gameLoaded', async () => { }) bot.on('diggingCompleted', async () => { if (diggingBlock) { - await playBlockBreak(diggingBlock.name) + await playBlockBreak(diggingBlock.name, diggingBlock.position) } }) }