mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update file library warnings
This commit is contained in:
parent
c543575150
commit
a015d74af5
2 changed files with 11 additions and 3 deletions
|
|
@ -314,3 +314,10 @@ function __vc__error(msg, frame)
|
|||
end
|
||||
return debug.traceback(msg, frame)
|
||||
end
|
||||
|
||||
function __vc_warning(msg, detail, n)
|
||||
if events then
|
||||
events.emit(
|
||||
"core:warning", msg, detail, debug.get_traceback(1 + (n or 0)))
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue