mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-06-28 14:16:18 +02:00
Fix the //move command (WorldEdit API is unaffected).
This commit is contained in:
@ -560,18 +560,16 @@ minetest.register_chatcommand("/move", {
|
||||
amount = amount * sign
|
||||
end
|
||||
|
||||
local count = worldedit.move(pos1, pos2, axis, tonumber(amount))
|
||||
local tenv = minetest.env
|
||||
if worldedit.ENABLE_QUEUE then
|
||||
tenv = worldedit.quene_aliasenv
|
||||
end
|
||||
local count = worldedit.move(pos1, pos2, axis, tonumber(amount), tenv)
|
||||
|
||||
pos1[axis] = pos1[axis] + amount
|
||||
pos2[axis] = pos2[axis] + amount
|
||||
worldedit.mark_pos1(name)
|
||||
worldedit.mark_pos2(name)
|
||||
|
||||
local tenv = minetest.env
|
||||
if worldedit.ENABLE_QUEUE then
|
||||
tenv = worldedit.quene_aliasenv
|
||||
end
|
||||
local count = worldedit.copy(pos1, pos2, axis, tonumber(amount), tenv)
|
||||
worldedit.player_notify(name, count .. " nodes moved")
|
||||
end,
|
||||
})
|
||||
|
Reference in New Issue
Block a user