Skip to content

Commit d24768b

Browse files
1 parent 7a9df76 commit d24768b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Scripts/Generation/Chunk.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public sealed class Chunk
2020
public int MaxVoxelCapacity => SquaredPaddedChunkSizeXZ * ChunkSizeY + SquaredPaddedChunkSizeXZ;
2121

2222
public int PaddedChunkSizeXZ => ChunkSizeXZ + 1;
23-
public int SquaredPaddedChunkSizeXZ => _sqrtChunkSizeXZ ??= (int)Math.Pow(PaddedChunkSizeXZ, 2);
24-
private int? _sqrtChunkSizeXZ = null;
23+
public int SquaredPaddedChunkSizeXZ => _squaredChunkSizeXZ ??= (int)Math.Pow(PaddedChunkSizeXZ, 2);
24+
private int? _squaredChunkSizeXZ = null;
2525

2626
public int ChunkSizeXZ => _chunkSizeXZ ??= Generator.ChunkSizeXZ * ChunkSizeXZMultiplier;
2727
private int? _chunkSizeXZ = null;

0 commit comments

Comments
 (0)