Skip to content

Commit 133988d

Browse files
committed
vector.copy -> vector.new
1 parent c1ec87f commit 133988d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

worldedit_commands/init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ local function copy_state(which, name)
2323
return {}
2424
elseif which == 1 then
2525
return {
26-
worldedit.pos1[name] and vector.copy(worldedit.pos1[name])
26+
worldedit.pos1[name] and vector.new(worldedit.pos1[name])
2727
}
2828
else
2929
return {
30-
worldedit.pos1[name] and vector.copy(worldedit.pos1[name]),
31-
worldedit.pos2[name] and vector.copy(worldedit.pos2[name])
30+
worldedit.pos1[name] and vector.new(worldedit.pos1[name]),
31+
worldedit.pos2[name] and vector.new(worldedit.pos2[name])
3232
}
3333
end
3434
end

worldedit_commands/wand.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ minetest.register_tool(":worldedit:wand", {
4646
local entity = pointed_thing.ref:get_luaentity()
4747
if entity and entity.name == "worldedit:pos2" then
4848
-- set pos1 = pos2
49-
worldedit.pos1[name] = vector.copy(worldedit.pos2[name])
49+
worldedit.pos1[name] = vector.new(worldedit.pos2[name])
5050
worldedit.mark_pos1(name)
5151
end
5252
end
@@ -79,7 +79,7 @@ minetest.register_tool(":worldedit:wand", {
7979
local entity = pointed_thing.ref:get_luaentity()
8080
if entity and entity.name == "worldedit:pos1" then
8181
-- set pos2 = pos1
82-
worldedit.pos2[name] = vector.copy(worldedit.pos1[name])
82+
worldedit.pos2[name] = vector.new(worldedit.pos1[name])
8383
worldedit.mark_pos2(name)
8484
end
8585
return itemstack -- nothing consumed, nothing changed

0 commit comments

Comments
 (0)