From 5c2dd375283f8625766c3b843b5c023061be6a56 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 13 Jun 2018 17:20:10 +0200 Subject: [PATCH] Fix crash if dropping charged bow --- mods/ITEMS/mcl_bows/bow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_bows/bow.lua b/mods/ITEMS/mcl_bows/bow.lua index 93d480ed6d..7e7d27e3e7 100644 --- a/mods/ITEMS/mcl_bows/bow.lua +++ b/mods/ITEMS/mcl_bows/bow.lua @@ -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()