Skip to content

Commit

Permalink
Itemlink size 16
Browse files Browse the repository at this point in the history
  • Loading branch information
Exempt-Medic authored Dec 1, 2024
1 parent f26cda0 commit d63a923
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,7 @@ def verify(self, world: typing.Type[World], player_name: str, plando_options: "P
super(ItemLinks, self).verify(world, player_name, plando_options)
existing_links = set()
for link in self.value:
link["name"] = link["name"].strip()[:16].strip()
if link["name"] in existing_links:
raise Exception(f"You cannot have more than one link named {link['name']}.")
existing_links.add(link["name"])
Expand Down

0 comments on commit d63a923

Please sign in to comment.