This commit is contained in:
stujones11 2019-05-26 21:16:44 +01:00
parent 7e0975b991
commit adaeb31bdd

View File

@ -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 radius_magnet = 2 --Radius of item magnet
local player_collect_height = 1.3 --Added to their pos y value local player_collect_height = 1.3 --Added to their pos y value
local function valid_pos() local function valid_pos(pos)
if pos then if pos then
for _, v in pairs({"x", "y", "z"}) do for _, v in pairs({"x", "y", "z"}) do
if not pos[v] or pos[v] < -32000 or pos[v] > 32000 then if not pos[v] or pos[v] < -32000 or pos[v] > 32000 then