1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-03 16:40:38 +02:00

fixup! Add a hollowcuboid iteration helper

This commit is contained in:
HybridDog
2024-04-23 20:12:33 +02:00
parent 2a90a1d235
commit f6b4a0f3fa

View File

@ -27,7 +27,7 @@ function worldedit.cube(pos, width, height, length, node_name, hollow)
if hollow then if hollow then
iterfunc = mh.iterp_hollowcuboid(area, basepos, endpos) iterfunc = mh.iterp_hollowcuboid(area, basepos, endpos)
else else
iterfunc = area:iter(basepos, endpos) iterfunc = area:iterp(basepos, endpos)
end end
for vi in iterfunc do for vi in iterfunc do