sc2: Fixing typo in itemgroups.py causing spurious item groups with 2 letters chopped off (#3612)

This commit is contained in:
Phaneros 2024-07-05 13:37:32 -07:00 committed by GitHub
parent d4d0a3e945
commit ca76628813
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ for item, data in Items.get_full_item_list().items():
item_name_groups.setdefault(data.type, []).append(item)
# Numbered flaggroups get sorted into an unnumbered group
# Currently supports numbers of one or two digits
if data.type[-2:].strip().isnumeric:
if data.type[-2:].strip().isnumeric():
type_group = data.type[:-2].strip()
item_name_groups.setdefault(type_group, []).append(item)
# Flaggroups with numbers are unlisted