Fix crash with doc.entry_revealed

master
Olivier Dragon 2022-04-22 08:59:10 -04:00
parent 42821416f8
commit f6de6c19fc
1 changed files with 3 additions and 2 deletions

View File

@ -126,13 +126,14 @@ local function async_update()
end
function doc.mark_entry_as_revealed(playername, category_id, entry_id)
if not doc.entry_revealed(playername, category_id, entry_id) then
-- Temp Fix: `doc.entry_revealed()` crashes on some items like farming:* because they're given the wrong category_id
-- if not doc.entry_revealed(playername, category_id, entry_id) then
orig_mark_entry_as_revealed(playername, category_id, entry_id)
if not next(async_update_users) then
minetest.after(0, async_update)
async_update_users[playername] = true
end
end
-- end
end