1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-11-13 05:50:17 +01:00

another nil check for entity

This commit is contained in:
tenplus1 2020-07-17 21:12:43 +01:00
parent 81dd3d75c0
commit 903e81bdab

View File

@ -1013,7 +1013,7 @@ function mob_class:do_env_damage()
self:update_tag()
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()