44846c803a92023e7acc96a58c915d35f6446916 — Francesco Gazzetta 8 months ago 25c081e master v1.0.4
Fix signs not updating on player leave
1 files changed, 4 insertions(+), 1 deletions(-)

M init.lua
M init.lua => init.lua +4 -1
@@ 99,7 99,10 @@ end
-- FIXME This is O(signs*players). We should store active signs by player, so we don't have
-- to iterate over all of them.
-- NOTE: the on_leaveplayer callback gets called before the player actually gets
-- removed from the online players list, so we use after() to delay the update
-- after the leave is complete.
minetest.register_on_leaveplayer(function() minetest.after(0, update_all_active_signs) end)

-- Standard signs