mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-03-01 05:46:21 +00:00
Changes changes
This commit is contained in:
@@ -124,10 +124,9 @@ namespace WeaponPaints
|
||||
CCSPlayerController player = Utilities.GetPlayerFromIndex(playerIndex);
|
||||
if (!Utility.IsPlayerValid(player)) return;
|
||||
|
||||
|
||||
var steamId = new SteamID(player.SteamID);
|
||||
|
||||
if (!WeaponPaints.gPlayerWeaponsInfo.ContainsKey(playerIndex))
|
||||
if (!WeaponPaints.gPlayerWeaponsInfo.TryGetValue(playerIndex, out _))
|
||||
{
|
||||
WeaponPaints.gPlayerWeaponsInfo[playerIndex] = new Dictionary<int, WeaponInfo>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user