From 0f3211e4fb0cf27684079e6195995947c9f9027f Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Tue, 22 Aug 2017 00:14:56 -0400 Subject: Hotfix for map stich --- gamemode/core/mapstich/sv_mapstich.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gamemode/core/mapstich/sv_mapstich.lua') diff --git a/gamemode/core/mapstich/sv_mapstich.lua b/gamemode/core/mapstich/sv_mapstich.lua index bd671bd..6a2ae38 100644 --- a/gamemode/core/mapstich/sv_mapstich.lua +++ b/gamemode/core/mapstich/sv_mapstich.lua @@ -43,8 +43,9 @@ concommand.Add("artery_saveplayer",function(ply,cmd,args) end) net.Receive("art_zonechange",function(len,ply) - + SavePlayerData(ply) timer.Simple(0.5,function() + if not IsValid(ply) then return end local zone = ply:GetCurrentZone("artery_serverchange") if zone then dontupdatedisconnect[ply] = true @@ -71,8 +72,6 @@ net.Receive("art_zonechange",function(len,ply) print("Query",sql) print("Error",err) end) - - SavePlayerData(ply) end end) end) -- cgit v1.2.3-70-g09d2