Skip to content

Commit ff556bf

Browse files
authored
sm64ex: Fix server (#2599)
1 parent a3b0476 commit ff556bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

worlds/sm64ex/Rules.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def set_rules(world, player: int, area_connections: dict):
4040
fix_reg(randomized_entrances, SM64Levels.CAVERN_OF_THE_METAL_CAP, {"Hazy Maze Cave"}, swapdict, world)
4141

4242
# Destination Format: LVL | AREA with LVL = LEVEL_x, AREA = Area as used in sm64 code
43-
area_connections.update({entrance_lvl: sm64_entrances_to_level[destination] for (entrance_lvl,destination) in randomized_entrances.items()})
43+
# Cast to int to not rely on availability of SM64Levels enum. Will cause crash in MultiServer otherwise
44+
area_connections.update({int(entrance_lvl): int(sm64_entrances_to_level[destination]) for (entrance_lvl,destination) in randomized_entrances.items()})
4445
randomized_entrances_s = {sm64_level_to_entrances[entrance_lvl]: destination for (entrance_lvl,destination) in randomized_entrances.items()}
4546

4647
connect_regions(world, player, "Menu", randomized_entrances_s["Bob-omb Battlefield"])

0 commit comments

Comments
 (0)