forked from mtcontrib/mobs_redo
another nil check for entity
This commit is contained in:
2
api.lua
2
api.lua
@ -1013,7 +1013,7 @@ function mob_class:do_env_damage()
|
|||||||
self:update_tag()
|
self:update_tag()
|
||||||
end
|
end
|
||||||
|
|
||||||
local pos = self.object:get_pos()
|
local pos = self.object:get_pos() ; if not pos then return end
|
||||||
|
|
||||||
self.time_of_day = minetest.get_timeofday()
|
self.time_of_day = minetest.get_timeofday()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user