mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
commit
3637855581
3 changed files with 3 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ function events.emit(event, ...)
|
||||||
for _, func in ipairs(handlers) do
|
for _, func in ipairs(handlers) do
|
||||||
local status, newres = xpcall(func, __vc__error, ...)
|
local status, newres = xpcall(func, __vc__error, ...)
|
||||||
if not status then
|
if not status then
|
||||||
debug.error("error in event ("..event..") handler: "..newres)
|
debug.error("error in event ("..event..") handler"..(newres and (": "..tostring(newres)) or ""))
|
||||||
else
|
else
|
||||||
result = result or newres
|
result = result or newres
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -259,7 +259,7 @@ function io_stream:read_line()
|
||||||
end
|
end
|
||||||
|
|
||||||
function io_stream:write_line(str)
|
function io_stream:write_line(str)
|
||||||
self:__write(utf8.tobytes(str .. LF))
|
self:__write(utf8.tobytes(str .. "\n"))
|
||||||
end
|
end
|
||||||
|
|
||||||
function io_stream:read(arg, useTable)
|
function io_stream:read(arg, useTable)
|
||||||
|
|
|
||||||
|
|
@ -519,7 +519,7 @@ audio.__reset_fetch_buffer = nil
|
||||||
core.get_core_token = audio.input.__get_core_token
|
core.get_core_token = audio.input.__get_core_token
|
||||||
|
|
||||||
local function __vc__process_post_runnables()
|
local function __vc__process_post_runnables()
|
||||||
if #__post_runnables then
|
if #__post_runnables > 0 then
|
||||||
for _, func in ipairs(__post_runnables) do
|
for _, func in ipairs(__post_runnables) do
|
||||||
local status, result = xpcall(func, __vc__error)
|
local status, result = xpcall(func, __vc__error)
|
||||||
if not status then
|
if not status then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue