From 1372375997ac36baf35c7aaee82a543cbf0a0df8 Mon Sep 17 00:00:00 2001 From: ElCeejo <40281901+ElCeejo@users.noreply.github.com> Date: Mon, 30 May 2022 05:07:00 -0700 Subject: [PATCH] Fix crash --- mob_meta.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mob_meta.lua b/mob_meta.lua index e3b37e2..95e8def 100644 --- a/mob_meta.lua +++ b/mob_meta.lua @@ -126,6 +126,15 @@ local function get_ground_level(pos2, max_diff) return pos2 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 -- -------------------------