Skip to content

Commit 12b53cf

Browse files
authored
Merge pull request #235 from MetroidAdvRandomizerSystem/locked-crash
Don't overwrite locked door room ID
2 parents d31d797 + 55fc21c commit 12b53cf

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/mars_patcher/mf/door_locks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ def factory() -> dict:
203203
capped_slot, capless_slot = new_room_hatch_slots[area_room]
204204
if lock == HatchLock.LOCKED:
205205
new_hatch_slot = orig_hatch_slot
206-
# Mark door as deleted
207-
rom.write_8(door_addr + 1, 0xFF)
208206
elif (lock is None and orig_has_cap) or (lock is not None and lock != HatchLock.OPEN):
209207
# Has cap
210208
new_hatch_slot = capped_slot

0 commit comments

Comments
 (0)