Skip to content

Commit

Permalink
Update resourcePack.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqxx committed Oct 4, 2024
1 parent e9c8398 commit 836b172
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resourcePack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ const prepareBlockstatesAndModels = async () => {

const downloadAndUseResourcePack = async (url: string): Promise<void> => {
console.log('downloadAndUseResourcePack', url)
const resourcePackData = await fetch(url).then(response => response.arrayBuffer())
const response = await fetch(url)
const resourcePackData = await response.arrayBuffer()
installTexturePack(resourcePackData)
}

Expand Down

0 comments on commit 836b172

Please sign in to comment.