mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
Merge pull request #67 from miniduikboot/fix/cofindgame
This commit is contained in:
1 file changed
+18
@@ -0,0 +1,18 @@
|
|||||||
|
using HarmonyLib;
|
||||||
|
|
||||||
|
namespace Reactor.Patches.Fixes;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Fixes Game Lists not working on servers using legacy matchmaking.
|
||||||
|
/// </summary>
|
||||||
|
[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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user