Bugfix: Shield fails to block arrows

This commit is contained in:
Loveaabb 2024-05-21 14:51:43 +00:00 committed by the-real-herowl
parent 04e29c5796
commit f26c34e65f

@ -257,10 +257,10 @@ function ARROW_ENTITY.on_step(self, dtime)
mcl_burning.set_on_fire(obj, 5) mcl_burning.set_on_fire(obj, 5)
end end
if not self._in_player and not self._blocked then if not self._in_player and not self._blocked then
obj:punch(self.object, 1.0, { mcl_util.deal_damage(obj, self._damage, {type = "arrow", source = self._shooter, direct = self.object})
full_punch_interval=1.0, if self._extra_hit_func then
damage_groups={fleshy=self._damage}, self._extra_hit_func(obj)
}, self.object:get_velocity()) end
if obj:is_player() then if obj:is_player() then
if not mcl_shields.is_blocking(obj) then if not mcl_shields.is_blocking(obj) then
local placement local placement