mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-08-20 13:34:05 +02:00
Correct offset
This commit is contained in:
parent
729424e97c
commit
2fd63fcb25
@ -19,7 +19,7 @@ function worldedit.ellipsoid(position, radius, target_node)
|
|||||||
|
|
||||||
local count = 0 -- The number of nodes replaced
|
local count = 0 -- The number of nodes replaced
|
||||||
|
|
||||||
local idx_z_base = area:index(position.x, position.y, position.z) -- initial z offset
|
local idx_z_base = area:index(position.x - radius.x, position.y - radius.y, position.z - radius.z) -- initial z offset
|
||||||
for z = -radius.z, radius.z do
|
for z = -radius.z, radius.z do
|
||||||
|
|
||||||
local idx_y_base = idx_z_base
|
local idx_y_base = idx_z_base
|
||||||
|
Loading…
Reference in New Issue
Block a user