From 20764d5d193aa3ddd619c20cb0f3e74fa0d72e22 Mon Sep 17 00:00:00 2001 From: Showdown76py Date: Mon, 19 May 2025 13:43:04 +0200 Subject: [PATCH] fix: Simplify click position extraction for screenshot crosshair in tool execution --- ai/processor.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ai/processor.py b/ai/processor.py index 0412144..4eee89a 100644 --- a/ai/processor.py +++ b/ai/processor.py @@ -73,12 +73,7 @@ class AIProcessor: print('ERROR NEXT STEPS IS STR, ', nextsteps) if tc.function.name == "click_button": # extract click position for screenshot crosshair - click_positions.extend(tuple( # button_type, x, y - map(int,(ags.get("x", 0), - ags.get("y", 0) - ) - ) - )) + click_positions.append((ags.get("x", 0), ags.get("y", 0))) r = ai.compute._execute( name=tc.function.name, args=json.loads(tc.function.arguments),