Skip to content

Commit

Permalink
v0.15.0.1, quick fix for an unload issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Sep 23, 2020
1 parent 666e078 commit 275149f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions ModdersToolkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ public override void Load()

public override void Unload()
{
if (!Main.dedServ)
tools.ForEach(tool => tool.ClientTerminate());

tools.ForEach(tool => tool.Terminate());
if (tools != null) {
if (!Main.dedServ)
tools.ForEach(tool => tool.ClientTerminate());

tools.ForEach(tool => tool.Terminate());
}
tools = null;
instance = null;

Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
author = jopojelly
version = 0.15
version = 0.15.0.1
versionScheme = major when done, minor when new tool, build when new item within tool, revision for bug fix quick release
displayName = Modders Toolkit
homepage = https://forums.terraria.org/index.php?threads/modders-toolkit-a-mod-for-modders-doing-modding.55738/
Expand Down

0 comments on commit 275149f

Please sign in to comment.