Skip to content

Commit 9a84a7a

Browse files
committed
do less annoying logging
1 parent d6eb160 commit 9a84a7a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

renderer/viewer/lib/worldDataEmitter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ export class WorldDataEmitter extends (EventEmitter as new () => TypedEmitter<Wo
379379
chunksToUnload.push(p)
380380
}
381381
}
382-
console.log('unloading', chunksToUnload.length, 'total now', Object.keys(this.loadedChunks).length)
383382
for (const p of chunksToUnload) {
384383
this.unloadChunk(p)
385384
}

src/appViewer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ export class AppViewer {
201201
this.worldView = new WorldDataEmitter(world, renderDistance, startPosition)
202202
this.worldView.panicChunksReload = () => {
203203
if (!options.experimentalClientSelfReload) return
204-
displayClientChat(`[client] client panicked due to too long loading time. Soft reloading chunks...`)
204+
if (process.env.NODE_ENV === 'development') {
205+
displayClientChat(`[client] client panicked due to too long loading time. Soft reloading chunks...`)
206+
}
205207
void reloadChunks()
206208
}
207209
window.worldView = this.worldView

0 commit comments

Comments
 (0)