diff --git a/files/drops/init.lua b/files/drops/init.lua index cc6f5f1..145b2c9 100644 --- a/files/drops/init.lua +++ b/files/drops/init.lua @@ -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