From 3d7ad1a6bc2a187366759fe1895a9afc1efc7641 Mon Sep 17 00:00:00 2001 From: ANAND Date: Sun, 26 Apr 2020 21:39:07 +0530 Subject: [PATCH] Crossbow: Pass player as puncher instead of arrow object --- shooter_crossbow/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shooter_crossbow/init.lua b/shooter_crossbow/init.lua index a0b3d34..9408970 100644 --- a/shooter_crossbow/init.lua +++ b/shooter_crossbow/init.lua @@ -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)