mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Add proper lua api deprecated handling
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user