From f1cde99b1bba487a3cff50ed38f0b37825b9f07e Mon Sep 17 00:00:00 2001 From: Jofairden Date: Thu, 13 Jul 2017 17:01:45 +0200 Subject: [PATCH] Fixes #6 --- Tremor.cs | 2 +- TremorGlowMask.cs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Tremor.cs b/Tremor.cs index 2baee878..fd8c6781 100644 --- a/Tremor.cs +++ b/Tremor.cs @@ -189,7 +189,7 @@ public override void Unload() { if (!Main.dedServ) { - + TremorGlowMask.Unload(); } } diff --git a/TremorGlowMask.cs b/TremorGlowMask.cs index 756a609d..dc84bb92 100644 --- a/TremorGlowMask.cs +++ b/TremorGlowMask.cs @@ -9,6 +9,11 @@ public class TremorGlowMask : ModPlayer { private static readonly Dictionary ItemGlowMask = new Dictionary(); + internal static void Unload() + { + ItemGlowMask.Clear(); + } + public static void AddGlowMask(int itemType, string texturePath) { ItemGlowMask.Add(itemType, ModLoader.GetTexture(texturePath));