mirror of
https://github.com/HybridDog/we_undo.git
synced 2024-12-12 17:13:16 +01:00
Support /mix
This commit is contained in:
parent
6d08b6ce7e
commit
19d081ef20
19
init.lua
19
init.lua
@ -514,14 +514,17 @@ local we_set = worldedit.set
|
|||||||
local function my_we_set(pos1, pos2, ...)
|
local function my_we_set(pos1, pos2, ...)
|
||||||
return we_nodeset_wrapper(we_set, pos1, pos2, ...)
|
return we_nodeset_wrapper(we_set, pos1, pos2, ...)
|
||||||
end
|
end
|
||||||
override_cc_with_confirm("/set",
|
local set_cmds = {"/set", "/mix"}
|
||||||
function()
|
for i = 1,2 do
|
||||||
worldedit.set = my_we_set
|
override_cc_with_confirm(set_cmds[i],
|
||||||
end,
|
function()
|
||||||
function()
|
worldedit.set = my_we_set
|
||||||
worldedit.set = we_set
|
end,
|
||||||
end
|
function()
|
||||||
)
|
worldedit.set = we_set
|
||||||
|
end
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
local we_replace = worldedit.replace
|
local we_replace = worldedit.replace
|
||||||
local function my_we_replace(pos1, pos2, ...)
|
local function my_we_replace(pos1, pos2, ...)
|
||||||
|
Loading…
Reference in New Issue
Block a user