Fix ephemeral handling on 5.5

master
Lars Mueller 2022-01-09 17:57:55 +01:00
parent 72524f8f4c
commit ecbd8bad94
1 changed files with 3 additions and 3 deletions

View File

@ -23,10 +23,10 @@ function epidermis.dynamic_add_media(path, on_all_received, ephemeral)
local arg = path
if minetest.features.dynamic_add_media_table then
arg = {filepath = path}
if minetest.is_singleplayer() then
arg.ephemeral = true
else
if not minetest.is_singleplayer() then
arg.ephemeral = ephemeral
else
arg.ephemeral = false
end
end
if not next(to_receive) then