- Updated for latest css
This commit is contained in:
Dawid Bepierszcz
2024-04-26 10:02:32 +02:00
parent a8ba645292
commit ec0d4f4d5a
4 changed files with 9 additions and 9 deletions

View File

@@ -65,7 +65,7 @@ namespace WeaponPaints
int playerTeam = player.TeamNum;
Dictionary<string, List<(int, int)>> weaponsWithAmmo = new Dictionary<string, List<(int, int)>>();
Dictionary<string, List<(int, int)>> weaponsWithAmmo = [];
foreach (var weapon in weapons)
{
@@ -101,7 +101,7 @@ namespace WeaponPaints
if (!weaponsWithAmmo.TryGetValue(weaponByDefindex, out List<(int, int)>? value))
{
value = new List<(int, int)>();
value = [];
weaponsWithAmmo.Add(weaponByDefindex, value);
}
@@ -121,8 +121,8 @@ namespace WeaponPaints
try
{
player.ExecuteClientCommand("slot 3");
player.ExecuteClientCommand("slot 3");
player.ExecuteClientCommandFromServer("slot 3");
player.ExecuteClientCommandFromServer("slot 3");
var weapon = player.PlayerPawn.Value.WeaponServices.ActiveWeapon;
if (weapon is null || !weapon.IsValid || weapon.Value == null) return;