]> git.lizzy.rs Git - worldedit.git/commitdiff
Fix #93 (thanks @za267!)
authorAnthony Zhang <azhang9@gmail.com>
Sun, 1 Nov 2015 21:50:36 +0000 (16:50 -0500)
committerAnthony Zhang <azhang9@gmail.com>
Sun, 1 Nov 2015 21:50:36 +0000 (16:50 -0500)
worldedit/primitives.lua

index 6d3b026eb614e5af238a95c2eb6a409721c05a31..303f51d9302597a595f5972b900fb9950a288347 100644 (file)
@@ -157,7 +157,7 @@ function worldedit.pyramid(pos, axis, height, node_name)
        -- Set up voxel manipulator\r
        local manip, area = mh.init_axis_radius(pos, axis,\r
                        height >= 0 and height or -height)\r
-       local data = mh.get_empty_data()\r
+       local data = mh.get_empty_data(area)\r
 \r
        -- Handle inverted pyramids\r
        local start_axis, end_axis, step\r