1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-26 02:30:40 +01:00

Fix //move again

This commit is contained in:
Sfan5 2013-05-20 20:48:12 +02:00
parent d7ae19b7b8
commit a1dcc43210

View File

@ -560,11 +560,8 @@ minetest.register_chatcommand("/move", {
amount = amount * sign amount = amount * sign
end end
local tenv = minetest.env --Do NOT use the queue here, it'll mess it up
if worldedit.ENABLE_QUEUE then local count = worldedit.move(pos1, pos2, axis, tonumber(amount))
tenv = worldedit.quene_aliasenv
end
local count = worldedit.move(pos1, pos2, axis, tonumber(amount), tenv)
pos1[axis] = pos1[axis] + amount pos1[axis] = pos1[axis] + amount
pos2[axis] = pos2[axis] + amount pos2[axis] = pos2[axis] + amount