Skip to content

Commit e769629

Browse files
committed
Fix chunk layer assignment
1 parent e4adbc7 commit e769629

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Runtime/Code/VoxelWorld/VoxelWorldChunk.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ private bool DoHeadlessUpdate(VoxelWorld world) {
481481

482482
if (obj == null) {
483483
obj = newChunk;
484+
obj.layer = world.gameObject.layer;
484485
obj.transform.parent = parent.transform;
485486
obj.transform.localRotation = Quaternion.identity;
486487
obj.transform.localScale = Vector3.one;

0 commit comments

Comments
 (0)