Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Fixes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Jofairden committed Jul 13, 2017
1 parent b112ce4 commit f1cde99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Tremor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public override void Unload()
{
if (!Main.dedServ)
{

TremorGlowMask.Unload();
}
}

Expand Down
5 changes: 5 additions & 0 deletions TremorGlowMask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ public class TremorGlowMask : ModPlayer
{
private static readonly Dictionary<int, Texture2D> ItemGlowMask = new Dictionary<int, Texture2D>();

internal static void Unload()
{
ItemGlowMask.Clear();
}

public static void AddGlowMask(int itemType, string texturePath)
{
ItemGlowMask.Add(itemType, ModLoader.GetTexture(texturePath));
Expand Down

0 comments on commit f1cde99

Please sign in to comment.