aboutsummaryrefslogtreecommitdiff
path: root/.luacheckrc
diff options
context:
space:
mode:
authorpoi <erbaotao@outlook.com>2022-01-30 13:21:33 +0000
committersfan5 <sfan5@live.de>2022-01-30 19:53:29 +0100
commita0e4b2bf54a1c21609a9683e15e01e016d52e75a (patch)
tree0bcbaa5fc2de6c29dc1290075abd6dc1dd9eca3f /.luacheckrc
parent98982065edc3dd8cb98a431f75c8f00be0370b66 (diff)
downloadminetest-a0e4b2bf54a1c21609a9683e15e01e016d52e75a.tar.gz
minetest-a0e4b2bf54a1c21609a9683e15e01e016d52e75a.tar.bz2
minetest-a0e4b2bf54a1c21609a9683e15e01e016d52e75a.zip
Translated using Weblate (Chinese (Simplified))
Currently translated at 93.4% (1323 of 1416 strings)
Diffstat (limited to '.luacheckrc')
0 files changed, 0 insertions, 0 deletions
event.type=="punch" then if event.channel=="upd_main" or event.type=="punch" then local ts = os.time() local table = table local start_t = os.clock() if not S.lagrec then S.lagrec = {} end local ids = {} for i in pairs(S.trains) do ids[#ids+1] = i end table.sort(ids, function(a, b) local ta, tb = S.trains[a], S.trains[b] if ta.l == tb.l then return a < b else return ta.l < tb.l end end) --do return end local disp = {{}, {}, {}} local percol = height*4-1 for id = 1, #ids, 1 do local st = (S.trains[ids[id] or 0] or {}) local i = math.floor((id-1)/percol) local j = math.floor(((id-1)%percol+1)/4)+1 local stn = sformat("%-3s %-3s %s", st.mode or "", st.t or "N/A", F.stnlist[st.s] or st.s) stn = stn:gsub("ä","ae"):gsub("ö","oe"):gsub("ü","ue"):gsub("ß","ss") local dt = ts - (st.ts or -1) local td = "" if dt < 3600 then