mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add warning for initial properties directly inside definition (#9650)
This commit is contained in:
parent
98f097dc2f
commit
c6a0ead72d
7 changed files with 95 additions and 5 deletions
|
@ -177,7 +177,8 @@ void log_deprecated(lua_State *L, std::string message, int stack_depth)
|
|||
if (mode == DeprecatedHandlingMode::Ignore)
|
||||
return;
|
||||
|
||||
script_log_add_source(L, message, stack_depth);
|
||||
if (stack_depth >= 0)
|
||||
script_log_add_source(L, message, stack_depth);
|
||||
warningstream << message << std::endl;
|
||||
|
||||
if (mode == DeprecatedHandlingMode::Error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue