From c4271cf13d2fd7de72fa8e602f844a200525fdea Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 21 Jul 2020 18:55:41 -0400 Subject: [PATCH] Correct crash when no arrow is in the inventory and the bow is drawn. --- 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 94d5a9404..68bee1a5f 100644 --- a/mods/ITEMS/mcl_bows/bow.lua +++ b/mods/ITEMS/mcl_bows/bow.lua @@ -219,7 +219,7 @@ controls.register_on_release(function(player, key, time) end) controls.register_on_hold(function(player, key, time) - if key ~= "RMB" then + if key ~= "RMB" or not get_arrow(player) then return end local name = player:get_player_name()