Skip to content

Commit d880d32

Browse files
committed
refactor(breakhandler): improve logging for break completion states
1 parent 55f99c3 commit d880d32

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

runelite-client/src/main/java/net/runelite/client/plugins/microbot/breakhandler/BreakHandlerScript.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,10 @@ private void handleLoggedOutState() {
466466
* In micro break state (no logout), waiting for duration to complete.
467467
*/
468468
private void handleLoginBreakActiveState() {
469-
// Check if micro break should end
470-
if ((breakDuration <= 0 && !Rs2AntibanSettings.microBreakActive) || config.breakEndNow()) {
471-
log.debug("Micro break completed");
469+
// Check if in-game break (micro break or no-logout break) should end
470+
if (breakDuration <= 0 || config.breakEndNow()) {
471+
String breakType = Rs2AntibanSettings.microBreakActive ? "Micro break" : "In-game break";
472+
log.debug("{} completed", breakType);
472473
transitionToState(BreakHandlerState.BREAK_ENDING);
473474
}
474475
}

0 commit comments

Comments
 (0)