Skip to content

Commit 251b843

Browse files
Seef0xFPtje
authored andcommitted
Fix server console database checking
1 parent d4dba18 commit 251b843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gamemode/modules/base/sh_util.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,13 +381,13 @@ if CLIENT then net.Receive("DarkRP_databaseCheckMessage", fc{print, net.ReadStri
381381

382382
local function checkDatabase(ply)
383383
local dbFile = SERVER and "sv.db" or "cl.db"
384-
local display = (CLIENT or ply == game.GetWorld() or not IsValid(ply)) and print or function(msg)
384+
local display = (CLIENT or not IsValid(ply)) and print or function(msg)
385385
net.Start("DarkRP_databaseCheckMessage")
386386
net.WriteString(msg)
387387
net.Send(ply)
388388
end
389389

390-
if SERVER and IsValid(ply) and ply ~= game.GetWorld() and not ply:IsSuperAdmin() then
390+
if SERVER and IsValid(ply) and not ply:IsSuperAdmin() then
391391
display("You must be superadmin")
392392
return
393393
end

0 commit comments

Comments
 (0)