summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Ponce <Sebastien.Ponce@cern.ch>2015-09-14 22:09:36 +0200
committersfan5 <sfan5@live.de>2016-01-05 14:11:04 +0100
commit2e2fcfdfa2f5f9b15951d6f149c3c1d72bedf1a6 (patch)
treec6a23da1056d70634f9fe7d2caea2f12b1964eed
parente0a26617002564db0c3d06f4f9e6d509b55b106c (diff)
Fixed Issue #83 : upsidedown pyramid not working well
-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