mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add 'core:warning' event
This commit is contained in:
parent
9ede50045b
commit
e51c6bed78
4 changed files with 20 additions and 7 deletions
|
|
@ -238,6 +238,7 @@ function on_deprecated_call(name, alternatives)
|
|||
return
|
||||
end
|
||||
__warnings_hidden[name] = true
|
||||
events.emit("core:warning", "deprecated call", name)
|
||||
if alternatives then
|
||||
debug.warning("deprecated function called ("..name.."), use "..
|
||||
alternatives.." instead\n"..debug.traceback())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue