Skip to content

Commit

Permalink
Fix server console database checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Seef0x committed Dec 29, 2024
1 parent b51b717 commit 89538ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemode/modules/base/sh_util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 89538ae

Please sign in to comment.