mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-26 01:30:29 +01:00
parent
0f00140d6c
commit
0d88b4443f
@ -33,9 +33,11 @@ function throwing_shoot_arrow (itemstack, player, stiffness, is_cross)
|
|||||||
else
|
else
|
||||||
minetest.sound_play("throwing_bow_sound", {pos=playerpos})
|
minetest.sound_play("throwing_bow_sound", {pos=playerpos})
|
||||||
end
|
end
|
||||||
|
if obj:get_luaentity() then
|
||||||
obj:get_luaentity().player = player
|
obj:get_luaentity().player = player
|
||||||
obj:get_luaentity().inventory = player:get_inventory()
|
obj:get_luaentity().inventory = player:get_inventory()
|
||||||
obj:get_luaentity().stack = player:get_inventory():get_stack("main", player:get_wield_index()-1)
|
obj:get_luaentity().stack = player:get_inventory():get_stack("main", player:get_wield_index()-1)
|
||||||
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user