aboutsummaryrefslogtreecommitdiff
path: root/signals.lua
diff options
context:
space:
mode:
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
}},