mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add proper lua api deprecated handling
This commit is contained in:
parent
c03d7dc8a7
commit
b5acec0a3c
11 changed files with 75 additions and 3 deletions
|
@ -78,6 +78,11 @@ int ModApiUtil::l_log(lua_State *L)
|
|||
level = LMT_ACTION;
|
||||
else if(levelname == "verbose")
|
||||
level = LMT_VERBOSE;
|
||||
else if (levelname == "deprecated") {
|
||||
log_deprecated(L,text);
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
log_printline(level, text);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue