Skip to content

Commit

Permalink
Small Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbrq committed Oct 7, 2024
1 parent 27eca18 commit c8d643b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions worlds/gl/GauntletLegendsClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ async def inv_update(self, name: str, count: int, one=None):
item.count = count
elif "Health" in name:
max_health = await self.item_from_name("Max", player)
item.count = min(max(item.count + count, 0), max_health.count)
item.count = min(max(item.count + count, 1), max_health.count)
elif "Runestone" in name or "Mirror" in name or "Obelisk" in name:
item.count |= count
else:
Expand Down Expand Up @@ -966,20 +966,17 @@ async def gl_sync_task(ctx: GauntletLegendsContext):
await asyncio.sleep(0.1)
except TimeoutError:
logger.info("Connection Timed Out, Reconnecting")
ctx.var_reset()
ctx.socket = RetroSocket()
ctx.retro_connected = False
await asyncio.sleep(2)
except ConnectionResetError:
logger.info("Connection Lost, Reconnecting")
ctx.var_reset()
ctx.socket = RetroSocket()
ctx.retro_connected = False
await asyncio.sleep(2)
except Exception as e:
logger.error(f"Unknown Error Occurred: {e}")
logger.info(traceback.format_exc())
ctx.var_reset()
ctx.socket = RetroSocket()
ctx.retro_connected = False
await asyncio.sleep(2)
Expand Down

0 comments on commit c8d643b

Please sign in to comment.