aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/tcb_ts_ui.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-10-26 19:44:16 +0200
committerorwell96 <orwell@bleipb.de>2018-10-26 19:44:16 +0200
commitc1d5fb0e8ccc30e39919a910b30d5466a84a8464 (patch)
treefa3af1943faf7b0799b698b2dd2a7312fcdd62d0 /advtrains_interlocking/tcb_ts_ui.lua
parent012c01fcc71bcc0b41617af59a9cae9dcfa467ec (diff)
downloadadvtrains-c1d5fb0e8ccc30e39919a910b30d5466a84a8464.tar.gz
advtrains-c1d5fb0e8ccc30e39919a910b30d5466a84a8464.tar.bz2
advtrains-c1d5fb0e8ccc30e39919a910b30d5466a84a8464.zip
Add Interlocking Tool to inspect route locks
Diffstat (limited to 'advtrains_interlocking/tcb_ts_ui.lua')
-rw-r--r--advtrains_interlocking/tcb_ts_ui.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_interlocking/tcb_ts_ui.lua b/advtrains_interlocking/tcb_ts_ui.lua
index a205165..450c756 100644
--- a/advtrains_interlocking/tcb_ts_ui.lua
+++ b/advtrains_interlocking/tcb_ts_ui.lua
@@ -635,7 +635,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
advtrains.interlocking.visualize_route(sigd, tcbs.routes[sel_rte], "disp_"..t)
minetest.after(10, function() advtrains.interlocking.clear_visu_context("disp_"..t) end)
end
- if fields.renroute and hasprivs then
+ if fields.editroute and hasprivs then
local rte = tcbs.routes[sel_rte]
minetest.show_formspec(pname, formname.."_renroute_"..sel_rte, "field[name;Enter new route name;"..rte.name.."]")
return