Skip to content

Commit 4e7040f

Browse files
committed
dont remove the homepoint we add via our mod, it will always be there
1 parent 3316eb4 commit 4e7040f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

worlds/crystal_project/mod_helper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,9 @@ def get_removed_home_points(mod_info: List[ModInfoModel]) -> List[LocationData]:
441441
should_be_removed_because_no_npc_info = True
442442

443443
for home_point in vanilla_home_points:
444-
if (home_point.code == location_id and (should_be_removed_because_no_npc_info
444+
#5003 is a special value in that it's added via the archipelago mod, we shouldn't remove it because it's not in
445+
#the mod list, as it's not a vanilla location
446+
if (home_point.code != 5003 and home_point.code == location_id and (should_be_removed_because_no_npc_info
445447
# If the item's entity type is definitely not a home point, then remove the vanilla location, because it's type was changed by the mod
446448
or entity_type != HOME_POINT_ENTITY_TYPE)):
447449
removed_locations.append(LocationData(home_point.ap_region, home_point.name, location_id))

0 commit comments

Comments
 (0)