1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-01-11 02:10:20 +01:00

add nil check

This commit is contained in:
tenplus1 2022-03-13 16:30:20 +00:00
parent 65e369e5fc
commit f54c3da9d7

View File

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