mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Separate ephemeral from client caching in core.dynamic_add_media()
This commit is contained in:
parent
0b66465f33
commit
5672b93007
5 changed files with 9 additions and 4 deletions
|
@ -551,6 +551,7 @@ int ModApiServer::l_dynamic_add_media(lua_State *L)
|
|||
args.data.reset();
|
||||
getstringfield(L, 1, "to_player", args.to_player);
|
||||
getboolfield(L, 1, "ephemeral", args.ephemeral);
|
||||
args.client_cache = getboolfield_default(L, 1, "client_cache", !args.ephemeral);
|
||||
} else {
|
||||
tmp = readParam<std::string>(L, 1);
|
||||
args.filepath = tmp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue