Skip to content

Commit

Permalink
Update writing-mods.md
Browse files Browse the repository at this point in the history
  • Loading branch information
emmett-shark authored Sep 26, 2024
1 parent c54fe00 commit 22752e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user-guide/modding/writing-mods.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ public class ChimpanzeePlugin : BaseUnityPlugin
{
```

Then you can use the GameInitalizationEvent:
Then you can use the GameInitializationEvent:

```csharp
private Harmony _harmony = new Harmony("ch.offbeatwit.chimpanzee");

private void Awake()
{
GameInitalizationEvent.Register(Info, TryInitialize);
GameInitializationEvent.Register(Info, TryInitialize);
}

private void TryInitialize()
Expand Down

0 comments on commit 22752e7

Please sign in to comment.