mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix events.lua
This commit is contained in:
parent
4bfc1de5e2
commit
2daadf79f3
1 changed files with 1 additions and 1 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue