We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a9df76 commit d24768bCopy full SHA for d24768b
Assets/Scripts/Generation/Chunk.cs
@@ -20,8 +20,8 @@ public sealed class Chunk
20
public int MaxVoxelCapacity => SquaredPaddedChunkSizeXZ * ChunkSizeY + SquaredPaddedChunkSizeXZ;
21
22
public int PaddedChunkSizeXZ => ChunkSizeXZ + 1;
23
- public int SquaredPaddedChunkSizeXZ => _sqrtChunkSizeXZ ??= (int)Math.Pow(PaddedChunkSizeXZ, 2);
24
- private int? _sqrtChunkSizeXZ = null;
+ public int SquaredPaddedChunkSizeXZ => _squaredChunkSizeXZ ??= (int)Math.Pow(PaddedChunkSizeXZ, 2);
+ private int? _squaredChunkSizeXZ = null;
25
26
public int ChunkSizeXZ => _chunkSizeXZ ??= Generator.ChunkSizeXZ * ChunkSizeXZMultiplier;
27
private int? _chunkSizeXZ = null;
0 commit comments