--atc.lua--registers and controls the ATC systemlocal atc={}local eval_conditional
-- ATC persistence table. advtrains.atc is created by init.lua when it loads the save file.
atc.controllers = {}function atc.load_data(data)local temp = data and data.controllers or{}--transcode atc controller data to node hashes: table access times for numbers are far less than for stringsfor pts, data inpairs(temp)doiftype(pts)=="number"then
pts=minetest.pos_to_string(minetest.get_position_from_hash(pts))end
atc.controllers[pts] = data
end