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