summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--auto_yards/init_code.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_yards/init_code.lua b/auto_yards/init_code.lua
index 64c0773..cdeacce 100644
--- a/auto_yards/init_code.lua
+++ b/auto_yards/init_code.lua
@@ -170,7 +170,7 @@ F.yard_arrival = function(yard_id,this_dir) -- arrow points towards yard
return
end
- if event.train then
+ if event.train and atc_arrow then
if F.indicator(yard.active_indicator_pos) then
print("Train "..atc_id.." has arrived at "..yard_id.." yard and has to wait for the yard to deactivate.")
schedule_in(";10","recheck")