mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +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
|
||||
local status, newres = xpcall(func, __vc__error, ...)
|
||||
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
|
||||
result = result or newres
|
||||
end
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ function io_stream:read_line()
|
|||
end
|
||||
|
||||
function io_stream:write_line(str)
|
||||
self:__write(utf8.tobytes(str .. LF))
|
||||
self:__write(utf8.tobytes(str .. "\n"))
|
||||
end
|
||||
|
||||
function io_stream:read(arg, useTable)
|
||||
|
|
|
|||
|
|
@ -519,7 +519,7 @@ audio.__reset_fetch_buffer = nil
|
|||
core.get_core_token = audio.input.__get_core_token
|
||||
|
||||
local function __vc__process_post_runnables()
|
||||
if #__post_runnables then
|
||||
if #__post_runnables > 0 then
|
||||
for _, func in ipairs(__post_runnables) do
|
||||
local status, result = xpcall(func, __vc__error)
|
||||
if not status then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue