Fix late-loading for wr plugin

Players time won't count after finishing the map. Hopefully fixes issue with late loading. 

do not risk overwriting the player's data if their PB isn't loaded to cache yet in Shavit_OnFinish
This commit is contained in:
haooy 2025-09-18 21:14:11 +02:00 committed by GitHub
parent 183faae643
commit 26b4e53946
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -507,6 +507,14 @@ public void OnClientAuthorized(int client, const char[] auth)
}
}
public void OnClientPostAdminCheck(int client)
{
if (gB_Connected && !IsFakeClient(client) && !gB_LoadedCache[client])
{
UpdateClientCache(client);
}
}
public void OnClientDisconnect(int client)
{
delete gH_PBMenu[client];