1
0
mirror of https://github.com/pandorabox-io/banners.git synced 2025-01-06 16:10:32 +01:00

preserve player undo-history over joins

player could have timed-out and thus lost their history.
It isn't crucial to remove their history, so let's give
them this feature.
This commit is contained in:
Luke aka SwissalpS 2024-11-29 09:56:17 +01:00
parent 3d5805c8a9
commit 2fea87dbde

View File

@ -272,10 +272,6 @@ core.register_entity("banners:banner_ent", {
on_activate = banners.banner_on_activate,
})
core.register_on_leaveplayer(function(player)
histories[player:get_player_name()] = nil
end)
if core.get_modpath("factions") then
dofile(MP .. "factions.lua")
end