Skip to content

Commit

Permalink
Fix TypeError in Item.index
Browse files Browse the repository at this point in the history
  • Loading branch information
fenhl committed Oct 2, 2024
1 parent b6c013b commit fabef2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Item.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ def copy(self) -> Item:
@property
def index(self) -> Optional[int]:
idx = self.info.index
if idx is None:
# Don't try to compare GetItemId with NoneType
return None
if self.type == 'Shop':
# Some shop items have the same item IDs as unrelated regular items. Make sure these don't get turned into nonsense.
return idx
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__version__ = '8.2.13'

# This is a supplemental version number for branches based off of main dev.
supplementary_version = 2
supplementary_version = 3

# Pick a unique identifier byte for your fork if you are intending to have a long-lasting branch.
# This will be 0x00 for main releases and 0x01 for main dev.
Expand Down

0 comments on commit fabef2d

Please sign in to comment.