Skip to content

Commit

Permalink
Fix mod reload crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
sgkoishi committed Feb 25, 2020
1 parent 126ea5d commit 84a662f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Localizer/Localizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ public override void Unload()
{
SaveConfig();

// MonoModHooks.RemoveAll use mod.Name to unload the mod assembly
LoadedLocalizer.File.SetField("<name>k__BackingField", "!Localizer");
LoadedLocalizer.SetField("name", "!Localizer");

PackageUI?.Close();
UIHost.Dispose();
Main.OnPostDraw -= OnPostDraw;
Expand Down
2 changes: 1 addition & 1 deletion Localizer/build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
author = Chireiden Team
version = 1.5.0.4
version = 1.5.0.5
displayName = Localizer
hideCode = true
hideResources = false
Expand Down

0 comments on commit 84a662f

Please sign in to comment.