mirror of
https://github.com/HybridDog/we_undo.git
synced 2024-12-12 17:13:16 +01:00
Update to newest worldedit
This commit is contained in:
parent
48553a1cdc
commit
1129cb1601
@ -51,6 +51,7 @@ Not yet implemented:
|
||||
* /contract
|
||||
* /outset
|
||||
* /inset
|
||||
* /cube /hollowcube
|
||||
* /copy
|
||||
* /move
|
||||
* /stack
|
||||
|
19
init.lua
19
init.lua
@ -688,19 +688,14 @@ local function pyramid_func(_,_, ...)
|
||||
end
|
||||
local function my_we_pyramid(pos, axis, height, ...)
|
||||
local h = math.ceil(math.abs(height))
|
||||
-- This code is commented because of a worldedit pyramid wrapping bug. FIXME
|
||||
--~ local pos1 = vector.subtract(pos, h-1)
|
||||
--~ local pos2 = vector.add(pos, h-1)
|
||||
local pos1 = vector.subtract(pos, h-1)
|
||||
local pos2 = vector.add(pos, h-1)
|
||||
|
||||
--~ if height > 0 then
|
||||
--~ pos1[axis] = pos[axis]
|
||||
--~ else
|
||||
--~ pos2[axis] = pos[axis]
|
||||
--~ end
|
||||
|
||||
-- This workaround doesn't necessarily work right. It worked when tested.
|
||||
local pos1 = vector.subtract(pos, h + 15)
|
||||
local pos2 = vector.add(pos, h + 15)
|
||||
if height > 0 then
|
||||
pos1[axis] = pos[axis]
|
||||
else
|
||||
pos2[axis] = pos[axis]
|
||||
end
|
||||
|
||||
return we_nodeset_wrapper(pyramid_func, pos1, pos2, pos, axis, height, ...)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user