From 2fea87dbde33c79f638460c1d4c88a6ce85fa7cc Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Fri, 29 Nov 2024 09:56:17 +0100 Subject: [PATCH] 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. --- init.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/init.lua b/init.lua index 6bf19d5..e3a737e 100644 --- a/init.lua +++ b/init.lua @@ -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