Skip to content

Commit

Permalink
change class to type
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamunii committed Apr 7, 2024
1 parent 5bf4f77 commit fcf817a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/dev/fundamentals/patching-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ We have now briefly gone through using MonoMod and Harmony for Patching code. Le

**Why MonoMod**
- **MonoMod.RuntimeDetour.HookGen's** `MMHOOK` assemblies make patching **easy**:
- Applying patches is **clean** and **explicit** (e.g. `On.Namespace.Class.Method += MyPatch;`)
- Applying patches is **clean** and **explicit** (e.g. `On.Namespace.Type.Method += MyPatch;`)
- We can simply **autocomplete** our patch method's definition
- A single patch method can contain code that runs **before** and **after** the original method

Expand Down

0 comments on commit fcf817a

Please sign in to comment.