Fix error spam on test generation.

This commit is contained in:
Relintai 2021-04-17 12:27:47 +02:00
parent 13fff7b64c
commit 0621a5da3b

View File

@ -8,6 +8,6 @@ func _generate_chunk(chunk: TerraChunk) -> void:
var s : OpenSimplexNoise = OpenSimplexNoise.new()
for x in range(chunk.data_size_x):
for z in range(chunk.data_size_z):
for x in range(-chunk.margin_start, chunk.size_x + chunk.margin_end):
for z in range(-chunk.margin_start, chunk.size_x + chunk.margin_end):
chunk.set_voxel(s.get_noise_2d(x, z) * 10.0, x, z, TerraChunkDefault.DEFAULT_CHANNEL_ISOLEVEL)