summaryrefslogtreecommitdiff
path: root/worldedit/primitives.lua
diff options
context:
space:
mode:
Diffstat (limited to 'worldedit/primitives.lua')
-rw-r--r--worldedit/primitives.lua2
1 files changed, 1 insertions, 1 deletions
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