Crossbow: Pass player as puncher instead of arrow object
This commit is contained in:
parent
ea8af36b47
commit
3d7ad1a6bc
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ local function strike(arrow, pointed_thing, name)
|
|||
if groups.fleshy then
|
||||
shooter.spawn_particles(hit_pos)
|
||||
end
|
||||
target:punch(object, nil, arrow_tool_caps, dir)
|
||||
target:punch(puncher, nil, arrow_tool_caps, dir)
|
||||
if config.arrow_object_attach then
|
||||
local pos = vector.multiply(vector.subtract(target:get_pos(),
|
||||
hit_pos), -10)
|
||||
|
|
Loading…
Reference in a new issue