This commit is contained in:
Elkien3 2018-02-04 14:34:32 -06:00
parent bed7973051
commit 748595d2c9

View File

@ -32,7 +32,7 @@ function throwing_shoot_arrow (itemstack, player, stiffness, is_cross)
minetest.sound_play("throwing_bow_sound", {pos=playerpos}) minetest.sound_play("throwing_bow_sound", {pos=playerpos})
end end
if not obj:get_luaentity() then if not obj:get_luaentity() then
return return false
end end
obj:get_luaentity().player = player obj:get_luaentity().player = player
obj:get_luaentity().inventory = player:get_inventory() obj:get_luaentity().inventory = player:get_inventory()