mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
Fix Game lists not working on legacy mm servers
This happens because InnerNetClient.CoConnect now sets the default LastDisconnectReason to Unknown instead of ExitGame, which breaks the public game list screen. Co-Authored-By: Edward Smale <essmale2005@gmail.com>
This commit is contained in:
1 parent
da20e0990e
commit
678730ed0f
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