OoT: remove warning message during multidata manipulation
This commit is contained in:
parent
4f24c4ea78
commit
a66b11e6ec
|
@ -942,13 +942,13 @@ class OOTWorld(World):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# Remove undesired items from start_inventory
|
# Remove undesired items from start_inventory
|
||||||
|
# This is because we don't want them to show up in the autotracker,
|
||||||
|
# they just don't exist in-game.
|
||||||
for item_name in self.remove_from_start_inventory:
|
for item_name in self.remove_from_start_inventory:
|
||||||
item_id = self.item_name_to_id.get(item_name, None)
|
item_id = self.item_name_to_id.get(item_name, None)
|
||||||
try:
|
if item_id is None:
|
||||||
multidata["precollected_items"][self.player].remove(item_id)
|
continue
|
||||||
except ValueError as e:
|
multidata["precollected_items"][self.player].remove(item_id)
|
||||||
logger.warning(
|
|
||||||
f"Attempted to remove nonexistent item id {item_id} from OoT precollected items ({item_name})")
|
|
||||||
|
|
||||||
# Add ER hint data
|
# Add ER hint data
|
||||||
if self.shuffle_interior_entrances != 'off' or self.shuffle_dungeon_entrances or self.shuffle_grotto_entrances:
|
if self.shuffle_interior_entrances != 'off' or self.shuffle_dungeon_entrances or self.shuffle_grotto_entrances:
|
||||||
|
|
Loading…
Reference in New Issue