Update chipsgg to ignore koth (whatever that is)

This commit is contained in:
barelyprofessional
2024-08-17 23:53:05 +08:00
parent 71b46d73d2
commit f53e12552b

View File

@@ -189,6 +189,8 @@ public class Chipsgg : IDisposable
var innerDataPath = innerData[0].Deserialize<List<string>>(); var innerDataPath = innerData[0].Deserialize<List<string>>();
if (innerDataPath == null || innerDataPath.Count == 0) throw new Exception("innerDataPath was null or contained no elements"); if (innerDataPath == null || innerDataPath.Count == 0) throw new Exception("innerDataPath was null or contained no elements");
if (innerDataPath.Contains("metrics")) continue; if (innerDataPath.Contains("metrics")) continue;
// No idea with koth is, so we'll ignore it
if (innerDataPath[0] == "koth") return;
var currency = innerDataPath[1]; var currency = innerDataPath[1];
if (_currencies.TryGetValue(currency, out var updatedCurrency)) if (_currencies.TryGetValue(currency, out var updatedCurrency))
{ {