Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
rayzerbrain committed Apr 21, 2022
1 parent d787a85 commit 5010e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API/Modifiers/FirearmModifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private void ModifyAttachments(FirearmBase gun)
{
//this should affect a random attachment on the gun, but since it is reset each att change it doesn't matter which one it affects
if (ModifiedAttachments.TryGetValue(AttachmentName.None, out Dictionary<AttachmentParam, float> defaultParams))
ModifyParameters(gun, gun.Attachments.FirstOrDefault(), defaultParams);
ModifyParameters(gun, gun.Attachments.FirstOrDefault((att) => att != null && att.IsEnabled), defaultParams);

foreach (Attachment att in gun.Attachments.Where((att) => att.IsEnabled && att.Name != AttachmentName.None))
{
Expand Down

0 comments on commit 5010e86

Please sign in to comment.