Skip to content

Commit

Permalink
Merge pull request #7 from Aragami-delp/main
Browse files Browse the repository at this point in the history
Fix for not seeing pause menu
  • Loading branch information
Jasonleh99 authored Dec 30, 2022
2 parents e38e34e + dc299a3 commit a22df61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PlateupPrepGhost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public class PlateupPrepGhost : GenericSystemBase, IModSystem
public static readonly string VERSION = "1.15";
protected override void Initialise()
{
if (GameObject.FindObjectOfType<PrepGhostPatcher>() != null)
return;
GameObject prepGhostMod = new GameObject("PlateupPrepGhost");
prepGhostMod.AddComponent<PrepGhostPatcher>();
GameObject.DontDestroyOnLoad(prepGhostMod);
Expand All @@ -29,7 +31,7 @@ public class PrepGhostPatcher : MonoBehaviour

private void Awake()
{
harmony.PatchAll();
harmony.PatchAll(Assembly.GetExecutingAssembly());
}
}
}

0 comments on commit a22df61

Please sign in to comment.