Skip to content

Commit

Permalink
work: check arr on arr, not on dep
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Jun 2, 2024
1 parent f0e169c commit 41cc5f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Travelynx/Command/work.pm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ sub run {
arr_eva => $arr
);
if ( $journey->class <= 16
and $found_dep->rt_arr->epoch - $now->epoch < 600 )
and $found_arr->rt_arr->epoch - $now->epoch < 600 )
{
$self->app->add_wagonorder( $uid, 0, $train_id,
$found_dep->sched_dep, $journey->number );
Expand Down

0 comments on commit 41cc5f3

Please sign in to comment.