1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-13 04:00:28 +01:00

add nil check to general_attack

This commit is contained in:
tenplus1 2020-07-18 20:39:49 +01:00
parent 903e81bdab
commit f033cd401c

View File

@ -1831,7 +1831,7 @@ function mob_class:general_attack()
return
end
local s = self.object:get_pos()
local s = self.object:get_pos() ; if not s then return end
local objs = minetest.get_objects_inside_radius(s, self.view_range)
-- remove entities we aren't interested in