From 30cedb13f36321719c7a27fc891f1b400083a65c Mon Sep 17 00:00:00 2001 From: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com> Date: Mon, 13 Oct 2025 12:32:53 -0400 Subject: [PATCH] Core: Limit ItemLink Name to 16 Characters (#4318) --- Options.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Options.py b/Options.py index 826e45a5..d4e42fc0 100644 --- a/Options.py +++ b/Options.py @@ -1474,8 +1474,10 @@ class ItemLinks(OptionList): 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']}.") + raise Exception(f"Item link names are limited to their first 16 characters and must be unique. " + f"You have more than one link named '{link['name']}'.") existing_links.add(link["name"]) pool = self.verify_items(link["item_pool"], link["name"], "item_pool", world)