diff --git a/Reactor/Patches/Fixes/CoFindGamePatch.cs b/Reactor/Patches/Fixes/CoFindGamePatch.cs new file mode 100644 index 0000000..12fd66b --- /dev/null +++ b/Reactor/Patches/Fixes/CoFindGamePatch.cs @@ -0,0 +1,18 @@ +using HarmonyLib; + +namespace Reactor.Patches.Fixes; + +/// +/// Fixes Game Lists not working on servers using legacy matchmaking. +/// +[HarmonyPatch(typeof(AmongUsClient._CoFindGame_d__3), nameof(AmongUsClient._CoFindGame_d__3.MoveNext))] +internal static class CoFindGamePatch +{ + public static void Prefix() + { + if (AmongUsClient.Instance.LastDisconnectReason == DisconnectReasons.Unknown) + { + AmongUsClient.Instance.LastDisconnectReason = DisconnectReasons.ExitGame; + } + } +}