summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLars Müller <34514239+appgurueu@users.noreply.github.com>2022-07-08 13:52:58 +0200
committerGitHub <noreply@github.com>2022-07-08 13:52:58 +0200
commitb15393c2a5e43e5493c767877cf48b1a510736d6 (patch)
treed765c055e3003130562d6cc883fada1f7ca9166a /builtin
parent0e63f18a73754ebf68ebf286a95af222ab058538 (diff)
downloadminetest-b15393c2a5e43e5493c767877cf48b1a510736d6.tar.gz
minetest-b15393c2a5e43e5493c767877cf48b1a510736d6.tar.bz2
minetest-b15393c2a5e43e5493c767877cf48b1a510736d6.zip
Replace deprecated use of `vector.new` with `copy`
Diffstat (limited to 'builtin')
-rw-r--r--builtin/game/item.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/game/item.lua b/builtin/game/item.lua
index be54d5f70..659d21331 100644
--- a/builtin/game/item.lua
+++ b/builtin/game/item.lua
@@ -5,8 +5,8 @@ local builtin_shared = ...
local function copy_pointed_thing(pointed_thing)
return {
type = pointed_thing.type,
- above = vector.new(pointed_thing.above),
- under = vector.new(pointed_thing.under),
+ above = vector.copy(pointed_thing.above),
+ under = vector.copy(pointed_thing.under),
ref = pointed_thing.ref,
}
end