In add_to_first_available_inventory() in InventoryBar, there is a comment that ends in an incomplete sentence.
# If the item is empty, then automatically put the item in it and report success. # This works because elif not panel.held_item: panel.held_item = item return true
That line shouldn't be there. Thanks, I'll fix it with the update!