mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Adjust Server::dynamicAddMedia() and related parts a bit
This commit is contained in:
parent
c7d45fe51a
commit
0b66465f33
4 changed files with 60 additions and 41 deletions
|
@ -554,6 +554,7 @@ int ModApiServer::l_dynamic_add_media(lua_State *L)
|
|||
} else {
|
||||
tmp = readParam<std::string>(L, 1);
|
||||
args.filepath = tmp;
|
||||
log_deprecated(L, "Deprecated call to core.dynamic_add_media() with string argument", 1, true);
|
||||
}
|
||||
if (at_startup) {
|
||||
if (!lua_isnoneornil(L, 2))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue