Фикс парсера ошибок

Как завещал нам дедушка Декарт, «Я мыслю, следовательно, я есмь». Бля, файл короче чекается на наличие в парсере. component.get ("computer").beep заменил на computer.beep, ибо хуле-вообще. Ну и под шумок себя в контрибуторов вписал, ой, то есть ПОФИКСИЛ НЕСООТВЕТСТВИЕ ВИКИ И КОДА.
This commit is contained in:
Smok1e 2022-09-16 02:13:09 +03:00
parent 83e5516e97
commit fd46419ea2

View File

@ -2171,19 +2171,21 @@ function system.error(path, line, traceback)
-- Read part of file to display error line -- Read part of file to display error line
-- GUI.alert("SYS", path) -- GUI.alert("SYS", path)
for line in filesystem.lines(path) do if filesystem.exists(path) then
if lineCounter >= codeView.fromLine and lineCounter <= toLine then for line in filesystem.lines(path) do
codeView.lines[lineCounter] = line:gsub("\t", " ") if lineCounter >= codeView.fromLine and lineCounter <= toLine then
elseif lineCounter < codeView.fromLine then codeView.lines[lineCounter] = line:gsub("\t", " ")
codeView.lines[lineCounter] = " " elseif lineCounter < codeView.fromLine then
elseif lineCounter > toLine then codeView.lines[lineCounter] = " "
break elseif lineCounter > toLine then
end break
end
lineCounter = lineCounter + 1
lineCounter = lineCounter + 1
if lineCounter % 200 == 0 then
computer.pullSignal(0) if lineCounter % 200 == 0 then
computer.pullSignal(0)
end
end end
end end
@ -2218,7 +2220,7 @@ function system.error(path, line, traceback)
workspace:draw() workspace:draw()
for i = 1, 3 do for i = 1, 3 do
component.get("computer").beep(1500, 0.08) computer.beep(1500, 0.08)
end end
end end
@ -2646,6 +2648,7 @@ function system.updateDesktop()
"Yakov Verevkin, vk.com/id60991376", "Yakov Verevkin, vk.com/id60991376",
"Alexey Smirnov, vk.com/id23897419", "Alexey Smirnov, vk.com/id23897419",
"Timofey Shestakov, vk.com/id113499693", "Timofey Shestakov, vk.com/id113499693",
"Fedor Cheremisenov, vk.com/id402150900",
" ", " ",
"UX-advisers:", "UX-advisers:",
" ", " ",