mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 00:53:00 +00:00
noise2d/make_2d: add todo
This commit is contained in:
parent
46c2a02ade
commit
7db2207aea
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue