Skip to content

Commit efec514

Browse files
committed
Fix block update in chunk worker
1 parent b63de3c commit efec514

File tree

2 files changed

+1
-93
lines changed

2 files changed

+1
-93
lines changed

src/client/scripts/World/chunk.worker.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ handlers=
223223
cellId=terrain.cellTerrain.vec3 terrain.cellTerrain.computeCellForVoxel(data[0],data[1],data[2])...
224224
terrain.cellNeedsUpdate[cellId]=true
225225
neighbours=[[-1, 0, 0],[1, 0, 0],[0, -1, 0],[0, 1, 0],[0, 0, -1],[0, 0, 1]]
226-
for i in neighbours
226+
for nei in neighbours
227227
neiCellId=terrain.cellTerrain.vec3 terrain.cellTerrain.computeCellForVoxel(data[0]+nei[0],data[1]+nei[1],data[2]+nei[2])...
228228
terrain.cellNeedsUpdate[neiCellId]=true
229229
return

src/client/scripts/World/sections.worker.coffee

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)