From 034715c4e1217fc991e006aa74db6672a4a046ed Mon Sep 17 00:00:00 2001 From: LLCoolDave Date: Mon, 22 May 2017 21:34:38 +0200 Subject: [PATCH] Ensure that remaining items get placed if we run into a dead end while creating a seed. --- Main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Main.py b/Main.py index ab8799fb..41654189 100644 --- a/Main.py +++ b/Main.py @@ -114,7 +114,8 @@ def distribute_items(world): # we placed all available progress items. Maybe the game can be beaten anyway? if world.can_beat_game(): logging.getLogger('').warning('Not all locations reachable. Game beatable anyway.') - break + progress_done = True + continue raise RuntimeError('No more progress items left to place.') spot_to_fill = None