mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-22 08:23:33 -07:00
Core: check that only unsendable items are on unsendable locations
This commit is contained in:
5
Main.py
5
Main.py
@@ -295,7 +295,7 @@ def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = No
|
||||
outfilebase = 'AP_' + world.seed_name
|
||||
|
||||
output = tempfile.TemporaryDirectory()
|
||||
with output as temp_dir:
|
||||
with (output as temp_dir):
|
||||
output_players = [player for player in world.player_ids if AutoWorld.World.generate_output.__code__
|
||||
is not world.worlds[player].generate_output.__code__]
|
||||
with concurrent.futures.ThreadPoolExecutor(len(output_players) + 2) as pool:
|
||||
@@ -363,6 +363,9 @@ def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = No
|
||||
elif any([location.item.name in world.worlds[player].options.start_hints
|
||||
for player in world.groups.get(location.item.player, {}).get("players", [])]):
|
||||
precollect_hint(location)
|
||||
elif __debug__ and location.item.code is not None:
|
||||
raise Exception(f"Intended to be sendable item {location.item}, "
|
||||
f"was placed on never sendable location {location} of {location.game}.")
|
||||
|
||||
# embedded data package
|
||||
data_package = {
|
||||
|
||||
Reference in New Issue
Block a user