1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-25 02:00:39 +01:00

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,
z = pos.z - area.MinEdge.z,
}
local size = height * step
local size = math.abs(height * step)
local count = 0
-- For each level of the pyramid
for index1 = 0, height, step do