mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-26 09:59:33 +01:00
Fix crash if dropping charged bow
This commit is contained in:
parent
857dddab3b
commit
5c2dd37528
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ for level=0, 2 do
|
|||
range = 0, -- Pointing range to 0 to prevent punching with bow :D
|
||||
groups = {not_in_creative_inventory=1, not_in_craft_guide=1},
|
||||
on_drop = function(itemstack, dropper, pos)
|
||||
reset_bow_state(player)
|
||||
reset_bow_state(dropper)
|
||||
itemstack:set_name("mcl_bows:bow")
|
||||
minetest.item_drop(itemstack, dropper, pos)
|
||||
itemstack:take_item()
|
||||
|
|
Loading…
Reference in a new issue