Skip to content

Commit

Permalink
Init a chunk property that wasn't being initted
Browse files Browse the repository at this point in the history
  • Loading branch information
fenomas committed Apr 5, 2023
1 parent c3c91fe commit 66538a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/chunk.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ export function Chunk(noa, requestID, ci, cj, ck, size, dataArray, fillVoxelID =
this.noa = noa
this.isDisposed = false

// arbitrary data passed in by client when generating world
this.userData = null

// voxel data and properties
this.requestID = requestID // id sent to game client
this.voxels = dataArray
Expand Down

0 comments on commit 66538a9

Please sign in to comment.