From a5da504b90862a92b0fac742e53503628cb97bbd Mon Sep 17 00:00:00 2001 From: aerinon Date: Fri, 3 Mar 2023 16:53:50 -0700 Subject: [PATCH] Fix for district shuffle's placeholder issue --- source/item/FillUtil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/item/FillUtil.py b/source/item/FillUtil.py index f581f3fb..c3881e7a 100644 --- a/source/item/FillUtil.py +++ b/source/item/FillUtil.py @@ -426,7 +426,8 @@ def filter_locations(item_to_place, locations, world, vanilla_skip=False, potion return filtered if len(filtered) > 0 else locations if world.algorithm == 'district': config = world.item_pool_config - if item_to_place == 'Placeholder' or item_to_place.name in config.item_pool[item_to_place.player]: + if ((isinstance(item_to_place,str) and item_to_place == 'Placeholder') + or item_to_place.name in config.item_pool[item_to_place.player]): restricted = config.location_groups[0].locations filtered = [l for l in locations if l.name in restricted and l.player in restricted[l.name]] return filtered if len(filtered) > 0 else locations