add nil check

This commit is contained in:
tenplus1 2022-03-13 16:30:20 +00:00
parent 65e369e5fc
commit f54c3da9d7
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = { mobs = {
mod = "redo", mod = "redo",
version = "20220205", version = "20220313",
intllib = S, intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {} invis = minetest.global_exists("invisibility") and invisibility or {}
} }
@ -274,7 +274,7 @@ local check_for = function(look_for, look_inside)
return true return true
end end
if str:find("group:") then if str and str:find("group:") then
local group = str:split(":")[2] local group = str:split(":")[2]