Fix
This commit is contained in:
parent
bd2b3948f3
commit
c6984353e5
|
@ -2,7 +2,7 @@ local age = 0.5 --How old an item has to be before collecting
|
|||
local radius_magnet = 2 --Radius of item magnet
|
||||
local player_collect_height = 1.3 --Added to their pos y value
|
||||
|
||||
local function valid_pos()
|
||||
local function valid_pos(pos)
|
||||
if pos then
|
||||
for _, v in pairs({"x", "y", "z"}) do
|
||||
if not pos[v] or pos[v] < -32000 or pos[v] > 32000 then
|
||||
|
|
Loading…
Reference in New Issue