fix: block break sound wasnt respecting position
This commit is contained in:
parent
ab70e99c0f
commit
c834eceec7
1 changed files with 2 additions and 1 deletions
|
|
@ -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<string, string[]>
|
||||
const allSoundsMap = window.allSoundsMap as Record<string, Record<string, string>>
|
||||
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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue