Iterate in z,y,x order through nodes

This commit is contained in:
Wuzzy 2023-10-19 23:27:19 +02:00
parent 1c390be281
commit 2a29951382

View File

@ -729,9 +729,9 @@ local calculate_noise = function(pos, noise, noiseparams, options, stats_mode)
end
-- Main loop (time-critical!)
for x=0, x_max do
for y=0, y_max do
for z=0, z_max do
for y=0, y_max do
for x=0, x_max do
-- Note: This loop has been optimized for speed, so the code
-- might not look pretty.
-- Be careful of the performance implications when touching this