mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-08 08:50:20 +01:00
add nil check to do_runaway_from
This commit is contained in:
parent
f14050ad3c
commit
f7a1b27ea4
4
api.lua
4
api.lua
@ -9,7 +9,7 @@ local use_cmi = minetest.global_exists("cmi")
|
||||
|
||||
mobs = {
|
||||
mod = "redo",
|
||||
version = "20200923",
|
||||
version = "20201001",
|
||||
intllib = S,
|
||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||
}
|
||||
@ -1904,7 +1904,7 @@ function mob_class:do_runaway_from()
|
||||
return
|
||||
end
|
||||
|
||||
local s = self.object:get_pos()
|
||||
local s = self.object:get_pos() ; if not s then return end
|
||||
local p, sp, dist, pname
|
||||
local player, obj, min_player, name
|
||||
local min_dist = self.view_range + 1
|
||||
|
Loading…
Reference in New Issue
Block a user