From 0500ffd9460fad7e309a1586eba4eb0b541da475 Mon Sep 17 00:00:00 2001 From: blackfirefly000 <50463948+blackfirefly000@users.noreply.github.com> Date: Wed, 2 Oct 2024 22:55:48 -0700 Subject: [PATCH] Update WeaponOptions.cs Enables addon MK2 weapons to use MK2 tints without relying on AddTextEntry or AddTextEntryByHash (which have proven unreliable in testing) --- vMenu/menus/WeaponOptions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vMenu/menus/WeaponOptions.cs b/vMenu/menus/WeaponOptions.cs index 04f88659..6ce4dc88 100644 --- a/vMenu/menus/WeaponOptions.cs +++ b/vMenu/menus/WeaponOptions.cs @@ -130,7 +130,7 @@ private void CreateMenu() addonWeaponMenu.AddMenuItem(fillAmmo); var tints = new List(); - if (addonWeapon.Name.Contains(" Mk II")) + if (addonWeapon.Name.Contains(" Mk II") || addonWeapon.SpawnName.Contains("MK_II")) { foreach (var tint in ValidWeapons.WeaponTintsMkII) { @@ -910,4 +910,4 @@ public Menu GetMenu() return menu; } } -} \ No newline at end of file +}