From 5d2c4bf12b89838f8f6f848baacbc92d5fb95aea Mon Sep 17 00:00:00 2001 From: ImaMapleTree <59880284+ImaMapleTree@users.noreply.github.com> Date: Thu, 20 Apr 2023 12:47:31 -0400 Subject: [PATCH] Small versioning fix --- VentFramework.csproj | 2 +- src/Localization/Localizer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VentFramework.csproj b/VentFramework.csproj index cc3ec82..bd4a07f 100644 --- a/VentFramework.csproj +++ b/VentFramework.csproj @@ -2,7 +2,7 @@ VentFramework A modding framework for the popular social deduction game Among Us - 1.2.1.19 + 1.2.1.20 VentLib net6.0 LICENSE diff --git a/src/Localization/Localizer.cs b/src/Localization/Localizer.cs index f8233a7..c975c7d 100644 --- a/src/Localization/Localizer.cs +++ b/src/Localization/Localizer.cs @@ -118,7 +118,7 @@ public Language[] FindAllLanguagesFromTranslation(string translation, string? qu return Languages.Select(l => l.Value).Where(lang => { if (qualifier != null) - return lang.Translate(qualifier, null!, TranslationCreationOption.NothingIfNull) != null!; + return lang.Translate(qualifier, null!, TranslationCreationOption.NothingIfNull) == translation; return FlattenDictionaryValues(lang.Translations).Contains(translation); }).ToArray(); }