Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Oct 25, 2023
1 parent 9fb71d3 commit beafb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/ctf/ctf_modebase/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit beafb63

Please sign in to comment.