Skip to content

Commit

Permalink
Replace deprecated use of vector.new with copy
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu committed Jul 8, 2022
1 parent 0e63f18 commit b15393c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/game/item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b15393c

Please sign in to comment.