Skip to content

Commit

Permalink
Merge pull request #30 from chi-rei-den/squid
Browse files Browse the repository at this point in the history
Fix mod reload crashing
  • Loading branch information
sgkoishi authored Feb 25, 2020
2 parents 890ebec + 84a662f commit a24b18b
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 a24b18b

Please sign in to comment.