1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix issue with iw5 weapon prefix not being removed properly

This commit is contained in:
RaidMax
2021-04-01 13:12:47 -05:00
parent cf6d71a8e5
commit fd6ab7fc8d

View File

@ -49,8 +49,9 @@ namespace Stats.Client
// remove the _mp suffix
var filtered = splitWeaponName
.Where(part => part != configForGame.WeaponSuffix && part != configForGame.WeaponPrefix);
var baseName = splitWeaponName.First();
.Where(part => part != configForGame.WeaponSuffix && part != configForGame.WeaponPrefix)
.ToList();
var baseName = filtered.First();
var attachments = new List<string>();
if (filtered.Count() > 1)