Confirmedusers
510
edits
(→Basic Patching: prevent the patches from getting double applied) |
(→Cleaning Up: handle harmony possibly being null in single player) |
||
Line 98: | Line 98: | ||
<syntaxhighlight lang="c#"> | <syntaxhighlight lang="c#"> | ||
public void Dispose() { | public void Dispose() { | ||
harmony.UnpatchAll( | harmony?.UnpatchAll(Mod.Info.ModID); | ||
} | } | ||
} | } |