Fix arrows from bow facing the wrong direction
This commit is contained in:
parent
e396ab8e4d
commit
d4ea161f33
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ local dispenserdef = {
|
|||
if iname == "mcl_throwing:arrow" then
|
||||
-- Shoot arrow
|
||||
local shootpos = vector.add(pos, vector.multiply(dropdir, 0.51))
|
||||
local yaw = math.atan2(dropdir.z, dropdir.x) + math.pi/2
|
||||
local yaw = math.atan2(dropdir.z, dropdir.x) - math.pi/2
|
||||
mcl_throwing.shoot_arrow(iname, shootpos, dropdir, yaw, nil)
|
||||
|
||||
stack:take_item()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue