mirror of
https://github.com/pandorabox-io/banners.git
synced 2025-01-08 17: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:
parent
3d5805c8a9
commit
2fea87dbde
4
init.lua
4
init.lua
@ -272,10 +272,6 @@ core.register_entity("banners:banner_ent", {
|
|||||||
on_activate = banners.banner_on_activate,
|
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
|
if core.get_modpath("factions") then
|
||||||
dofile(MP .. "factions.lua")
|
dofile(MP .. "factions.lua")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user