From 89538aede3a24f05bd3531f6e66d7fcf9c089f52 Mon Sep 17 00:00:00 2001 From: Seef0x <47392375+Seef0x@users.noreply.github.com> Date: Sun, 29 Dec 2024 01:14:11 +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 24d087773..35dc82754 100644 --- a/gamemode/modules/base/sh_util.lua +++ b/gamemode/modules/base/sh_util.lua @@ -381,7 +381,7 @@ if CLIENT then net.Receive("DarkRP_databaseCheckMessage", fc{print, net.ReadStri local function checkDatabase(ply) local dbFile = SERVER and "sv.db" or "cl.db" - local display = (CLIENT or ply == game.GetWorld()) and print or function(msg) + local display = (CLIENT or ply == game.GetWorld() or not IsValid(ply)) and print or function(msg) net.Start("DarkRP_databaseCheckMessage") net.WriteString(msg) net.Send(ply)