Make blaze burning better

This commit is contained in:
epCode 2021-04-04 16:46:44 -07:00
parent 93684baa86
commit a6f0ad13a0

@ -76,10 +76,8 @@ mobs:register_mob("mobs_mc:blaze", {
glow = 14, glow = 14,
fire_resistant = true, fire_resistant = true,
do_custom = function(self) do_custom = function(self)
for _,obj in pairs(minetest.get_objects_inside_radius(self.object:get_pos(), 1.2)) do if self.state == "attack" and vector.distance(self.object:get_pos(), self.attack:get_pos()) < 1.2 then
if obj:is_player() or not obj:is_player() and obj:get_luaentity()._cmi_is_mob then mcl_burning.set_on_fire(self.attack, 5)
mcl_burning.set_on_fire(obj, 5)
end
end end
local pos = self.object:get_pos() local pos = self.object:get_pos()
minetest.add_particle({ minetest.add_particle({