-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed the client's mod list not showing on LAN * Fixed additional LAN exception * Removed lobby list filter on lan as well since its not used
- Loading branch information
Showing
4 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using HarmonyLib; | ||
using LobbyCompatibility.Features; | ||
|
||
namespace LobbyCompatibility.Patches; | ||
|
||
/// <summary> | ||
/// Patches <see cref="MenuManager.StartAClient" />. | ||
/// Checks if required plugins are present in the lobby metadata and are the same version as the client. | ||
/// </summary> | ||
/// <seealso cref="MenuManager.StartAClient" /> | ||
[HarmonyPatch(typeof(MenuManager), nameof(MenuManager.StartAClient))] | ||
[HarmonyPriority(Priority.Last)] | ||
[HarmonyWrapSafe] | ||
internal static class StartAClientPostfix | ||
{ | ||
[HarmonyPrefix] | ||
private static void Prefix() | ||
{ | ||
// Create lobby diff so LatestLobbyDiff is set | ||
LobbyHelper.GetLobbyDiff(null); | ||
} | ||
} |