1
0
Fork 0
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:
sfan5 2025-08-26 15:22:36 +02:00
parent c7d45fe51a
commit 0b66465f33
4 changed files with 60 additions and 41 deletions

View file

@ -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))