From b15393c2a5e43e5493c767877cf48b1a510736d6 Mon Sep 17 00:00:00 2001 From: Lars Müller <34514239+appgurueu@users.noreply.github.com> Date: Fri, 8 Jul 2022 13:52:58 +0200 Subject: Replace deprecated use of `vector.new` with `copy` --- builtin/game/item.lua | 4 ++-- 1 file 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 -- cgit v1.2.3