From c8d643b0d2f7e1aadeca2201ed3515802ca689bc Mon Sep 17 00:00:00 2001 From: jamesbrq Date: Mon, 7 Oct 2024 03:47:43 -0400 Subject: [PATCH] Small Update --- worlds/gl/GauntletLegendsClient.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/worlds/gl/GauntletLegendsClient.py b/worlds/gl/GauntletLegendsClient.py index cca271b02d35..8d00c771d9cc 100644 --- a/worlds/gl/GauntletLegendsClient.py +++ b/worlds/gl/GauntletLegendsClient.py @@ -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: @@ -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)