noise2d/make_2d: add todo

This commit is contained in:
Starbeamrainbowlabs 2021-07-12 02:46:47 +01:00
parent 46c2a02ade
commit 7db2207aea
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -25,6 +25,7 @@ function worldeditadditions.noise.make_2d(size, start_pos, params)
return false, "Error: Unknown noise algorithm '"..tostring(layer.algorithm).."' in layer "..layer_i.." of "..#params.." (available algorithms: "..table.concat(wea.noise.engines.available, ", ")..")." return false, "Error: Unknown noise algorithm '"..tostring(layer.algorithm).."' in layer "..layer_i.." of "..#params.." (available algorithms: "..table.concat(wea.noise.engines.available, ", ")..")."
end end
-- TODO: Optimise performance by making i count backwards in sequence
for x = 0, size.x - 1 do for x = 0, size.x - 1 do
for y = 0, size.z - 1 do for y = 0, size.z - 1 do
local i = y*size.x + x local i = y*size.x + x