From beafb630c1824e1be536a35fa479582c15bc8df5 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Tue, 24 Oct 2023 19:29:27 -0700 Subject: [PATCH] Fix crash --- mods/ctf/ctf_modebase/player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ctf/ctf_modebase/player.lua b/mods/ctf/ctf_modebase/player.lua index 83dd72d71f..34439b21cc 100644 --- a/mods/ctf/ctf_modebase/player.lua +++ b/mods/ctf/ctf_modebase/player.lua @@ -173,7 +173,7 @@ minetest.register_on_item_pickup(function(itemstack, picker) for i=1, 8 do -- loop through the top row of the player's inv local compare = inv:get_stack("main", i) - if not mode.is_bound_item(picker, compare:get_name()) then + if not mode.is_bound_item or not mode.is_bound_item(picker, compare:get_name()) then local cprio = func(compare) if cprio and cprio < priority then