mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-24 00:49:34 +01:00
fix crash when blaze attacks logged off player
This commit is contained in:
parent
414e2e7725
commit
379972ea11
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ mobs:register_mob("mobs_mc:blaze", {
|
|||
glow = 14,
|
||||
fire_resistant = true,
|
||||
do_custom = function(self)
|
||||
if self.state == "attack" and vector.distance(self.object:get_pos(), self.attack:get_pos()) < 1.2 then
|
||||
if self.state == "attack" and self.attack:get_pos() and vector.distance(self.object:get_pos(), self.attack:get_pos()) < 1.2 then
|
||||
mcl_burning.set_on_fire(self.attack, 5)
|
||||
end
|
||||
local pos = self.object:get_pos()
|
||||
|
|
Loading…
Reference in a new issue