From 3ceec4c186ec177de119f5907cf4ff1db90aa7ac Mon Sep 17 00:00:00 2001 From: Sophie Calixto <156002567+datapanthom@users.noreply.github.com> Date: Wed, 13 Aug 2025 09:27:54 -0300 Subject: [PATCH] fix: use user charges on req --- Auto-Image.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Auto-Image.js b/Auto-Image.js index 5dfe2c9..f7e0f17 100644 --- a/Auto-Image.js +++ b/Auto-Image.js @@ -1218,7 +1218,7 @@ localY: y, }); - if (pixelBatch.length >= 60) { + if (pixelBatch.length >= Math.floor(state.currentCharges)) { const success = await sendPixelBatch(pixelBatch, regionX, regionY); if (success === "token_error") { @@ -1244,7 +1244,7 @@ pixelBatch = []; - if (state.currentCharges < 60) { + if (state.currentCharges < 1) { updateUI("noCharges", "warning", { time: Utils.formatTime(state.cooldown), });