diff --git a/worlds/lingo/static_logic.py b/worlds/lingo/static_logic.py index aecc17ec0746..e9f82fb751ca 100644 --- a/worlds/lingo/static_logic.py +++ b/worlds/lingo/static_logic.py @@ -1,7 +1,5 @@ from typing import Dict, List, NamedTuple, Optional, Set -import yaml - import Utils @@ -114,7 +112,7 @@ def load_static_data(): # Load in all item and location IDs. These are broken up into groups based on the type of item/location. with files(data).joinpath("ids.yaml").open() as file: - config = yaml.load(file, Loader=Utils.SafeLoader) + config = Utils.parse_yaml(file) if "special_items" in config: for item_name, item_id in config["special_items"].items(): @@ -149,7 +147,7 @@ def load_static_data(): # Process the main world file. with files(data).joinpath("LL1.yaml").open() as file: - config = yaml.load(file, Loader=Utils.SafeLoader) + config = Utils.parse_yaml(file) for room_name, room_data in config.items(): process_room(room_name, room_data)