mirror of
https://github.com/ElCeejo/creatura.git
synced 2025-07-04 22:00:26 -04:00
Fix crash
This commit is contained in:
parent
edff8aed14
commit
1372375997
1 changed files with 9 additions and 0 deletions
|
@ -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 --
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue