Skip to content

Commit e83876c

Browse files
committed
fix raf
1 parent e4d8c53 commit e83876c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/world/chunk.worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class TerrainManager {
128128
loop () {
129129
this.removeChunks()
130130
this.genNearestChunk()
131-
requestAnimationFrame(() => {
131+
self.requestAnimationFrame(() => {
132132
this.loop()
133133
})
134134
}

0 commit comments

Comments
 (0)