mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
Bugfix: Shield fails to block arrows
This commit is contained in:
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
|
||||||
|
Loading…
Reference in New Issue
Block a user