UnpackedTime: FormatAsDate now adds 1 to days, because days are counted starting at 1.
[VOID.git] / Tools / VOID_Tools.cs
blob:a/Tools/VOID_Tools.cs -> blob:b/Tools/VOID_Tools.cs
--- a/Tools/VOID_Tools.cs
+++ b/Tools/VOID_Tools.cs
@@ -363,6 +363,19 @@
 			}
 
 			return functionCache[hashCode];
+		}
+
+		public static void UncacheWindow(Action<int> func)
+		{
+			if (functionCache != null)
+			{
+				int hashCode = func.GetHashCode();
+
+				if (functionCache.ContainsKey(hashCode))
+				{
+					functionCache.Remove(hashCode);
+				}
+			}
 		}
 
 		/// <summary>