aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2024-12-03 00:56:17 +0100
committerorwell <orwell@bleipb.de>2024-12-03 00:56:17 +0100
commitb2889e33ba389c936b9d6b1ca5be27ef8f147280 (patch)
treed27093b8d071aa7371883b4f1632a554165e7522 /advtrains
parentfc13e732224f935bc558902e878e81a40afe4713 (diff)
downloadadvtrains-b2889e33ba389c936b9d6b1ca5be27ef8f147280.tar.gz
advtrains-b2889e33ba389c936b9d6b1ca5be27ef8f147280.tar.bz2
advtrains-b2889e33ba389c936b9d6b1ca5be27ef8f147280.zip
Feature to add passive components to a section as fixed locks (for level crossings)
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/p_mesecon_iface.lua2
-rw-r--r--advtrains/signals.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/p_mesecon_iface.lua b/advtrains/p_mesecon_iface.lua
index 0b99891..0426e2b 100644
--- a/advtrains/p_mesecon_iface.lua
+++ b/advtrains/p_mesecon_iface.lua
@@ -46,7 +46,7 @@ minetest.override_item("mesecons_switch:mesecon_switch_on", {
mesecon.receptor_off(pos)
end
end,
- fallback_state = "off",
+ node_fallback_state = "off",
on_updated_from_nodedb = function(pos, node)
mesecon.receptor_on(pos)
end,
diff --git a/advtrains/signals.lua b/advtrains/signals.lua
index 8bdd877..e3d75c3 100644
--- a/advtrains/signals.lua
+++ b/advtrains/signals.lua
@@ -310,7 +310,7 @@ minetest.register_node("advtrains:across_on", {
advtrains = {
node_state = "on",
node_state_map = { on = "advtrains:across_on", off = "advtrains:across_off" },
- fallback_state = "off",
+ node_fallback_state = "off",
},
on_rightclick=function(pos, node, player)
if advtrains.check_turnout_signal_protection(pos, player:get_player_name()) then