1
0
mirror of https://gitlab.com/echoes91/throwing.git synced 2024-11-14 05:50:21 +01:00

Build arrow correction

This commit is contained in:
echoes91 2015-03-27 15:39:32 +01:00
parent 74f021572b
commit a3a463916b

View File

@ -20,7 +20,7 @@ function throwing_shoot_arrow (itemstack, player, stiffness, is_cross)
if obj:get_luaentity().player == "" then
obj:get_luaentity().player = player
end
obj:get_luaentity().stack = player:get_inventory():get_stack("main", player:get_wield_index()+2)
obj:get_luaentity().stack = player:get_inventory():get_stack("main", player:get_wield_index()-1)
obj:get_luaentity().inventory = player:get_inventory()
return true
end