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)