Skip to content

Commit 5b30995

Browse files
committed
send "could not detect bag" notification only once
1 parent 2796830 commit 5b30995

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

SerialPrograms/Source/PokemonSwSh/Programs/RNG/PokemonSwSh_CramomaticRNG.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@ void CramomaticRNG::program(SingleSwitchProgramEnvironment& env, BotBaseContext&
488488
}catch (OperationFailedException& e){
489489
stats.errors++;
490490
env.update_stats();
491-
e.send_notification(env, NOTIFICATION_ERROR_RECOVERABLE);
492491

493492
apricorn_selection_errors++;
494493
if (apricorn_selection_errors >= 3){
@@ -497,8 +496,7 @@ void CramomaticRNG::program(SingleSwitchProgramEnvironment& env, BotBaseContext&
497496
"Could not detect the bag three times on a row."
498497
);
499498
}
500-
VideoSnapshot screen = env.console.video().snapshot();
501-
send_program_recoverable_error_notification(env, NOTIFICATION_ERROR_RECOVERABLE, "Could not detect the bag.", screen);
499+
send_program_recoverable_error_notification(env, NOTIFICATION_ERROR_RECOVERABLE, e.message(), e.screenshot());
502500
is_state_valid = false;
503501
recover_from_wrong_state(env, context);
504502
continue;

0 commit comments

Comments
 (0)