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));