mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
fix game never ending
This commit is contained in:
1 parent
6d387cae96
commit
e5cfd8a2fc
1 file changed
+10
-1
@@ -7,8 +7,17 @@ namespace MiraAPI.Patches.Events;
|
||||
|
||||
internal static class EndGamePatches
|
||||
{
|
||||
[HarmonyPatch(typeof(GameManager), nameof(GameManager.Awake))]
|
||||
public static class GameManagerAwakePatch
|
||||
{
|
||||
public static void Postfix(GameManager __instance)
|
||||
{
|
||||
__instance.enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(GameManager), nameof(GameManager.RpcEndGame))]
|
||||
public static class GameManagerPatches
|
||||
public static class GameManagerRpcEndGamePatch
|
||||
{
|
||||
public static bool Prefix(GameOverReason endReason)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user