Skip to content

Commit 479135d

Browse files
committed
Update CoreBots.cs
1 parent 103f6bc commit 479135d

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

CoreBots.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2636,11 +2636,10 @@ public List<ShopItem> GetShopItems(string map, int shopID)
26362636
ShopItem? byId = shopItems.FirstOrDefault(x => x.ShopItemID == shopItemID);
26372637
if (byId != null)
26382638
return byId;
2639+
else
2640+
Logger($"Item with ShopItemID {shopItemID} not found in shop {shopID}. Using \"{itemNameID}\" string as backup method");
26392641

26402642
}
2641-
else
2642-
Logger($"Item with ShopItemID {shopItemID} not found in shop {shopID}. Using \"{itemNameID}\" string as backup method");
2643-
26442643

26452644
List<ShopItem> matches = shopItems
26462645
.Where(x => x.Name.Equals(itemNameID, StringComparison.OrdinalIgnoreCase))
@@ -2678,8 +2677,8 @@ public List<ShopItem> GetShopItems(string map, int shopID)
26782677
ShopItem? bySID = shopItems.FirstOrDefault(x => x.ShopItemID == shopItemID);
26792678
if (bySID != null)
26802679
return bySID;
2681-
2682-
Logger($"ShopItemID {shopItemID} not found in shop {shopID}. Falling back to ItemID...");
2680+
else
2681+
Logger($"ShopItemID {shopItemID} not found in shop {shopID}. Falling back to ItemID...");
26832682
}
26842683

26852684
// 2️⃣ Fallback to ItemID

0 commit comments

Comments
 (0)