From cb4991d0fbf850a828efe2165eceb683f1fd24d5 Mon Sep 17 00:00:00 2001 From: Seef0x <47392375+Seef0x@users.noreply.github.com> Date: Sun, 29 Dec 2024 01:01:56 +0100 Subject: [PATCH] Fix server console database checking --- gamemode/modules/base/sh_util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemode/modules/base/sh_util.lua b/gamemode/modules/base/sh_util.lua index bfdb04c1a..24d087773 100644 --- a/gamemode/modules/base/sh_util.lua +++ b/gamemode/modules/base/sh_util.lua @@ -387,7 +387,7 @@ local function checkDatabase(ply) net.Send(ply) end - if SERVER and ply ~= game.GetWorld() and not ply:IsSuperAdmin() then + if SERVER and IsValid(ply) and ply ~= game.GetWorld() and not ply:IsSuperAdmin() then display("You must be superadmin") return end