Skip to content

Commit

Permalink
Fix #180 - thanks for the PR @PHGaming121
Browse files Browse the repository at this point in the history
Co-Authored-By: PHGaming121 <76562427+PHGaming121@users.noreply.github.com>
  • Loading branch information
Alexejhero and PHGaming121 committed Jan 30, 2025
1 parent a763c46 commit 3b66099
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Submerged/Minigames/Patches/FixMissingLoggerPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ namespace Submerged.Minigames.Patches;
[HarmonyPatch]
public static class MinigameBeginPatch
{
private static readonly Logger _logger = new("Minigame", Logger.Level.Info, Logger.Category.Gameplay);

[HarmonyPatch(typeof(Minigame), nameof(Minigame.Begin))]
[HarmonyPrefix]
public static void Prefix(Minigame __instance)
{
__instance.logger ??= new Logger("Minigame", Logger.Level.Info, Logger.Category.Gameplay);
__instance.logger ??= _logger;
}
}

0 comments on commit 3b66099

Please sign in to comment.