Fixed Issue #83 : upsidedown pyramid not working well

This commit is contained in:
Sebastien Ponce 2015-09-14 22:09:36 +02:00 committed by sfan5
parent e0a2661700
commit 2e2fcfdfa2

View File

@ -177,7 +177,7 @@ function worldedit.pyramid(pos, axis, height, node_name)
y = pos.y - area.MinEdge.y, y = pos.y - area.MinEdge.y,
z = pos.z - area.MinEdge.z, z = pos.z - area.MinEdge.z,
} }
local size = height * step local size = math.abs(height * step)
local count = 0 local count = 0
-- For each level of the pyramid -- For each level of the pyramid
for index1 = 0, height, step do for index1 = 0, height, step do