Small cleanup

This commit is contained in:
KrisDavie
2023-12-12 18:49:15 +01:00
parent 6510968401
commit a4a523ce4c
2 changed files with 5 additions and 4 deletions

View File

@@ -959,7 +959,7 @@ def do_mandatory_connections(avail, entrances, cave_options, must_exit):
if avail.world.logic[avail.player] in ['owglitches', 'hybridglitches', 'nologic']:
import OverworldGlitchRules
for entrance in OverworldGlitchRules.get_non_mandatory_exits(avail.inverted):
for entrance in OverworldGlitchRules.inverted_non_mandatory_exits if avail.inverted else OverworldGlitchRules.open_non_mandatory_exits:
invalid_connections[entrance] = set()
if entrance in must_exit:
must_exit.remove(entrance)