Skip to content

Commit 2e306d7

Browse files
committed
Fixed opening old system-encoded trackers
1 parent f4b0050 commit 2e306d7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

LootRandomizer/Mod/missions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ def PlaythroughChanged() -> None:
2929
if playthrough == new_playthrough:
3030
return
3131

32-
Log("PlaythroughChanged (actually)")
33-
3432
playthrough = new_playthrough
3533

3634
if playthrough == 2:

LootRandomizer/Mod/seed.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,12 @@ def update_tracker(self, location: Location, drop: bool) -> None:
213213

214214
path = self.generate_tracker()
215215

216-
with open(path, 'r', encoding='utf-8') as file:
217-
lines = file.readlines()
216+
try:
217+
with open(path, 'r', encoding='utf-8') as file:
218+
lines = file.readlines()
219+
except:
220+
with open(path, 'r') as file:
221+
lines = file.readlines()
218222

219223
for index in range(len(lines)):
220224
line = lines[index]

0 commit comments

Comments
 (0)