mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-02 22:05:20 +01:00
Replace deprecated use of vector.new with copy
This commit is contained in:
@@ -5,8 +5,8 @@ local builtin_shared = ...
|
|||||||
local function copy_pointed_thing(pointed_thing)
|
local function copy_pointed_thing(pointed_thing)
|
||||||
return {
|
return {
|
||||||
type = pointed_thing.type,
|
type = pointed_thing.type,
|
||||||
above = vector.new(pointed_thing.above),
|
above = vector.copy(pointed_thing.above),
|
||||||
under = vector.new(pointed_thing.under),
|
under = vector.copy(pointed_thing.under),
|
||||||
ref = pointed_thing.ref,
|
ref = pointed_thing.ref,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user