aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
diff options
context:
space:
mode:
authorMaverick2797 <git.maverick2797@gmail.com>2024-05-07 20:58:26 +0800
committerorwell <orwell@bleipb.de>2024-08-01 22:03:44 +0200
commit216f28e51aa3f8fea78f4fc054cb1071f3a9ce72 (patch)
tree87cca33b3a0a38e4420826a8ad1c469de388630b /advtrains_luaautomation
parent7c4f1377e452134ab9e4addd0f01360dfa72564a (diff)
downloadadvtrains-216f28e51aa3f8fea78f4fc054cb1071f3a9ce72.tar.gz
advtrains-216f28e51aa3f8fea78f4fc054cb1071f3a9ce72.tar.bz2
advtrains-216f28e51aa3f8fea78f4fc054cb1071f3a9ce72.zip
Fix set_aspect()
Actually send aspect to advtrains.interlocking.signal_set_aspect() from LuaATC set_aspect()
Diffstat (limited to 'advtrains_luaautomation')
-rw-r--r--advtrains_luaautomation/environment.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_luaautomation/environment.lua b/advtrains_luaautomation/environment.lua
index 761e227..ee7628d 100644
--- a/advtrains_luaautomation/environment.lua
+++ b/advtrains_luaautomation/environment.lua
@@ -224,7 +224,7 @@ if advtrains.interlocking then
end
static_env.set_aspect = function(signal, asp)
local pos = atlatc.pcnaming.resolve_pos(signal)
- return advtrains.interlocking.signal_set_aspect(pos)
+ return advtrains.interlocking.signal_set_aspect(pos,asp)
end
--section_occupancy()