From 8585f8d6f4189d1887cc2b94d010d31923463b14 Mon Sep 17 00:00:00 2001 From: Marvin Klein Date: Wed, 21 Aug 2024 23:03:26 +0200 Subject: [PATCH] Fixed !g links --- CSGencodes.Core/Models/Weapon.cs | 2 +- CSGencodes/Pages/Changelog.razor | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CSGencodes.Core/Models/Weapon.cs b/CSGencodes.Core/Models/Weapon.cs index 8b55df10..7eaca87f 100644 --- a/CSGencodes.Core/Models/Weapon.cs +++ b/CSGencodes.Core/Models/Weapon.cs @@ -60,7 +60,7 @@ public string GetGencode(decimal @float, int pattern, List stick foreach (var sticker in sortedStickers) { - while (sticker.PosId != (currentPos - addedStickers)) + while (sticker.PosId != currentPos) { sb.Append(" 0 0.00"); currentPos++; diff --git a/CSGencodes/Pages/Changelog.razor b/CSGencodes/Pages/Changelog.razor index 458deea8..32bdb7f9 100644 --- a/CSGencodes/Pages/Changelog.razor +++ b/CSGencodes/Pages/Changelog.razor @@ -9,6 +9,12 @@

Changelog

    +
  • + 2024-08-21 +
      +
    • Fixed !g links
    • +
    +
  • 2024-04-19