diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-09-13 14:44:35 +0200 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-09-13 14:44:35 +0200 |
commit | 1e93892d8ab8492a0f90a4e55806fc06ff6cb437 (patch) | |
tree | 33036b450c5347bfdc9db7af5aefb6dae9fedfa4 /signals.lua | |
parent | d3af97b63e92c84f1857483aa49fb677acaff541 (diff) | |
download | advtrains-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.lua | 2 |
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 }}, |