aboutsummaryrefslogtreecommitdiff
path: root/signals.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-09-13 14:44:35 +0200
committerorwell96 <mono96.mml@gmail.com>2016-09-13 14:44:35 +0200
commit1e93892d8ab8492a0f90a4e55806fc06ff6cb437 (patch)
tree33036b450c5347bfdc9db7af5aefb6dae9fedfa4 /signals.lua
parentd3af97b63e92c84f1857483aa49fb677acaff541 (diff)
downloadadvtrains-1e93892d8ab8492a0f90a4e55806fc06ff6cb437.tar.gz
advtrains-1e93892d8ab8492a0f90a4e55806fc06ff6cb437.tar.bz2
advtrains-1e93892d8ab8492a0f90a4e55806fc06ff6cb437.zip
add mesecon support for switches and signals
Diffstat (limited to 'signals.lua')
-rw-r--r--signals.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/signals.lua b/signals.lua
index 44fe621..118d16e 100644
--- a/signals.lua
+++ b/signals.lua
@@ -20,7 +20,7 @@ for r,f in pairs({on="off", off="on"}) do
not_blocking_trains=1
},
mesecons = {effector = {
- action_on = function (pos, node)
+ ["action_"..f] = function (pos, node)
minetest.swap_node(pos, {name = "advtrains:retrosignal_"..f, param2 = node.param2})
end
}},