Prevent dyn. media race condition in singleplayer

master
Lars Mueller 2022-02-11 01:34:32 +01:00
parent 2d567e2ef5
commit c1b310b5b8
1 changed files with 4 additions and 1 deletions

View File

@ -98,7 +98,10 @@ local function load_local_copy()
end
on_local_copy_loaded()
end
minetest.after(0, load_local_copy)
-- HACK wait a globalstep before loading the local copy to prevent the dynamic media join race condition in singleplayer
minetest.after(0, function()
minetest.after(0, load_local_copy)
end)
local timeout = 10
local html_unescape = modlib.web.html.unescape