Skip to content

Commit

Permalink
fix: strip weapon bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalle Minkner committed Dec 26, 2024
1 parent 036eea8 commit b7401e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RollTheDice+DiceStripWeapons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ private Dictionary<string, string> DiceStripWeapons(CCSPlayerController player,
{
// ignore unknown weapons
if (weapon.Value == null || weapon.Value != null && weapon.Value.DesignerName == null) continue;
if (weapon.Value!.DesignerName == $"weapon_{CsItem.C4.ToString().ToLower()}"
|| weapon.Value!.DesignerName == $"weapon_{CsItem.Bomb.ToString().ToLower()}")
if (weapon.Value!.DesignerName == CsItem.C4.ToString().ToLower()
|| weapon.Value!.DesignerName == CsItem.Bomb.ToString().ToLower())
{
// change weapon to currently active weapon
playerPawn.WeaponServices.ActiveWeapon.Raw = weapon.Raw;
Expand Down

0 comments on commit b7401e7

Please sign in to comment.