GlobalShare fix

This commit is contained in:
daffyyyy
2023-11-30 14:18:57 +01:00
parent be51e4d1e9
commit 2772fb59b9
3 changed files with 14 additions and 8 deletions

View File

@@ -224,11 +224,18 @@ namespace WeaponPaints
Server.NextFrame(() =>
{
newWeapon.Clip1 = clip1;
newWeapon.ReserveAmmo[0] = reservedAmmo;
if (newWeapon == null) return;
try
{
newWeapon.Clip1 = clip1;
newWeapon.ReserveAmmo[0] = reservedAmmo;
}
catch (Exception)
{ }
});
}
} catch(Exception ex)
}
catch (Exception ex)
{
Console.WriteLine("[WeaponPaints] Refreshing weapons exception");
Console.WriteLine(ex.Message);