Im trying to make it so when you press 'e' on a item it will delete the object your own if your slot is empty, and delete the new item and spawnn the old item, but when i check if a var is a item name for example "if item.current_item == "Green Key:" it gives me the Invalid Operands 'Object' and 'String' in operator "==" error, how do i fix this? (if code is needed tell me, but im warning you its trash lol)
Invalid Operands 'Object' and 'String' in operator "=="
Fixed it, just had to add .name to item.current_item