From d31b5168ef7f086a3cdc16073af21615959944f1 Mon Sep 17 00:00:00 2001 From: Sebastien Ponce Date: Mon, 14 Sep 2015 22:09:36 +0200 Subject: [PATCH] Fixed Issue #83 : upsidedown pyramid not working well --- worldedit/primitives.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit/primitives.lua b/worldedit/primitives.lua index 6d3b026..2407a7e 100644 --- a/worldedit/primitives.lua +++ b/worldedit/primitives.lua @@ -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