aboutsummaryrefslogtreecommitdiff
path: root/advtrains/textures/advtrains_dtrack_shared_detector_off.png
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2021-04-25 21:59:02 +0200
committerorwell96 <orwell@bleipb.de>2021-04-25 21:59:02 +0200
commit09bba2c57fcf3907d9e761d15526f1d9a9a91a13 (patch)
treed2969437e03fb4bc773945039c597f86a467526d /advtrains/textures/advtrains_dtrack_shared_detector_off.png
parent112e3ff2555f1380a5125a9b09ef0a7fc81b053a (diff)
downloadadvtrains-09bba2c57fcf3907d9e761d15526f1d9a9a91a13.tar.gz
advtrains-09bba2c57fcf3907d9e761d15526f1d9a9a91a13.tar.bz2
advtrains-09bba2c57fcf3907d9e761d15526f1d9a9a91a13.zip
Hopefully fix #177
Diffstat (limited to 'advtrains/textures/advtrains_dtrack_shared_detector_off.png')
0 files changed, 0 insertions, 0 deletions
pt">.chat_send_player(pname, "Insufficient privileges to use this!") return end if pointed_thing.type=="node" then local pos=pointed_thing.under if advtrains.is_passive(pos) then local form = "size[7,5]label[0.5,0.5;Route lock inspector]" local pts = minetest.pos_to_string(pos) local rtl = ilrs.has_route_lock(pts) if rtl then form = form.."label[0.5,1;Route locks currently put:\n"..rtl.."]" form = form.."button_exit[0.5,3.5; 5,1;clear;Clear]" else form = form.."label[0.5,1;No route locks set]" form = form.."button_exit[0.5,3.5; 5,1;emplace;Emplace manual lock]" end minetest.show_formspec(pname, "at_il_rtool_"..pts, form) else minetest.chat_send_player(pname, "Cannot use this here.") return end end end, }) minetest.register_on_player_receive_fields(function(player, formname, fields) local pname = player:get_player_name() if not minetest.check_player_privs(pname, "interlocking") then return end local pos local pts = string.match(formname, "^at_il_rtool_(.+)$") if pts then pos = minetest.string_to_pos(pts) end if pos then if advtrains.is_passive(pos) then if fields.clear then ilrs.remove_route_locks(pts) end if fields.emplace then ilrs.add_manual_route_lock(pts, "Manual lock ("..pname..")") end end end end)