Skip to content

Commit 808af6c

Browse files
committed
location packet byte reading fix
1 parent 1315340 commit 808af6c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

worlds/wsr/WSRClient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,10 +570,10 @@ async def check_locations(self) -> None:
570570

571571
new_locations_found = []
572572

573-
for i in range(0, len(p_data), 4):
574-
location = int.from_bytes(p_data[i:i+4], byteorder="big")
573+
for i in range(0, len(p_data), 2):
574+
p_slice = p_data[i:i+2]
575575

576-
logger.info(f"Location: {location}")
576+
location = int.from_bytes(p_slice, byteorder="big")
577577

578578
if location in self.missing_locations and location not in self.locations_checked:
579579
self.locations_checked.add(location)

0 commit comments

Comments
 (0)