Skip to content

Commit

Permalink
SNIClient: fix /snes command if tree (ArchipelagoMW#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 authored and Jouramie committed Feb 28, 2024
1 parent 5948747 commit 73a1b6b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SNIClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ def connect_to_snes(self, snes_options: str = "") -> bool:
options = snes_options.split()
num_options = len(options)

if num_options > 0:
snes_device_number = int(options[0])

if num_options > 1:
snes_address = options[0]
snes_device_number = int(options[1])
elif num_options > 0:
snes_device_number = int(options[0])

self.ctx.snes_reconnect_address = None
if self.ctx.snes_connect_task:
Expand Down

0 comments on commit 73a1b6b

Please sign in to comment.