Skip to content

Commit

Permalink
fix: move sold item message to network receive (#3710)
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonrag authored Feb 3, 2023
1 parent 0574f7d commit 2b73507
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/Commands.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5031,9 +5031,6 @@ sub cmdSell {

} elsif ($args[0] eq "done") {
completeNpcSell(\@sellList);
@sellList = ();
message TF("Sold %s items.\n", @sellList.""), "success";

} elsif ($args[0] eq "cancel") {
@sellList = ();
completeNpcSell(\@sellList);
Expand Down
4 changes: 3 additions & 1 deletion src/Network/Receive.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9363,9 +9363,11 @@ sub sell_result {
my ($self, $args) = @_;
if ($args->{fail}) {
error T("Sell failed.\n");
} else {
} else {
message TF("Sold %s items.\n", @sellList.""), "success";
message T("Sell completed.\n"), "success";
}
@sellList = ();
if (AI::is("sellAuto")) {
AI::args->{recv_sell_packet} = 1;
}
Expand Down

0 comments on commit 2b73507

Please sign in to comment.