mirror of
https://gitlab.com/echoes91/throwing.git
synced 2025-01-09 15:30:17 +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
|
if obj:get_luaentity().player == "" then
|
||||||
obj:get_luaentity().player = player
|
obj:get_luaentity().player = player
|
||||||
end
|
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()
|
obj:get_luaentity().inventory = player:get_inventory()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user