Correct offset

This commit is contained in:
Starbeamrainbowlabs 2018-06-09 19:38:23 +01:00
parent 729424e97c
commit 2fd63fcb25
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ function worldedit.ellipsoid(position, radius, target_node)
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
local idx_y_base = idx_z_base