Skip to content

Commit

Permalink
ww
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Dec 5, 2024
1 parent 912cf73 commit 51561b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion prismarine-viewer/examples/webgpuRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ export class WebgpuRenderer {
cubeFlatData[i * 3] = first
cubeFlatData[i * 3 + 1] = second
cubeFlatData[i * 3 + 2] = third
if (DEBUG_DATA) {
if (DEBUG_DATA && chunkBlock) {
debugCheckDuplicate(first, second, third)
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,16 +432,16 @@ async function connect (connectOptions: ConnectOptions) {
}
const mcData = MinecraftData(version)
window.loadedData = mcData
await initWebgpuRenderer(() => {
renderWrapper.postRender()
})
}

// serverOptions.version = '1.18.1'
const downloadVersion = connectOptions.botVersion || (singleplayer ? serverOptions.version : undefined)
if (downloadVersion) {
await downloadMcData(downloadVersion)
}
await initWebgpuRenderer(() => {
renderWrapper.postRender()
})

if (singleplayer) {
// SINGLEPLAYER EXPLAINER:
Expand Down

0 comments on commit 51561b6

Please sign in to comment.