mirror of
https://github.com/tiennm99/WPlace-AutoBOT.git
synced 2026-10-13 02:14:29 +00:00
fix: use user charges on req
This commit is contained in:
1 parent
3af750cd70
commit
3ceec4c186
1 file changed
+2
-2
+2
-2
@@ -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),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user