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:
parent
74f021572b
commit
a3a463916b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user