Fixed Placeholder NoneType error

This commit is contained in:
codemann8
2023-02-26 13:13:13 -06:00
parent a6f5c3a1e6
commit e8b4d23595

View File

@@ -2703,6 +2703,8 @@ class Item(object):
return self.world.get_name_string_for_object(self) if self.world else f'{self.name} (Player {self.player})'
def __eq__(self, other):
if type(other) is str:
return self.name == other
return self.name == other.name and self.player == other.player