From 2e2fcfdfa2f5f9b15951d6f149c3c1d72bedf1a6 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 303f51d..962a02f 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