From b64d465123a052cc489a6a794539b3cf26966209 Mon Sep 17 00:00:00 2001 From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Tue, 10 Dec 2024 22:52:33 +0300 Subject: [PATCH] Don't save bots data (#428) Don't save bots data as this can cause a Lua error and is a bit useless --- gamemode/core/libs/sv_player.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gamemode/core/libs/sv_player.lua b/gamemode/core/libs/sv_player.lua index 5bd35c0d7..0188ced15 100644 --- a/gamemode/core/libs/sv_player.lua +++ b/gamemode/core/libs/sv_player.lua @@ -48,6 +48,8 @@ do end function playerMeta:SaveData() + if (self:IsBot()) then return end + local name = self:SteamName() local steamID64 = self:SteamID64()