Fix crash

This commit is contained in:
ElCeejo 2022-05-30 05:07:00 -07:00 committed by GitHub
parent edff8aed14
commit 1372375997
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,6 +126,15 @@ local function get_ground_level(pos2, max_diff)
return pos2 return pos2
end end
local function is_value_in_table(tbl, val)
for _, v in pairs(tbl) do
if v == val then
return true
end
end
return false
end
------------------------- -------------------------
-- Physics/Vitals Tick -- -- Physics/Vitals Tick --
------------------------- -------------------------