Was caused by arrowconn not being set. Instructs user to revisit.
This commit is contained in:
orwell96 2017-05-22 15:01:38 +02:00
parent 5fe0ba1f24
commit d85f95ad10
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@ function r.fire_event(pos, evtdata)
local arrowconn = railtbl.arrowconn
if not arrowconn then
atwarn("LuaAutomation ATC interface rail at",ph,": Incomplete Data! Please visit position and click 'Save'!")
return
end
--prepare ingame API for ATC. Regenerate each time since pos needs to be known
--If no train, then return false.