From 6f53193a0c0ac3b91bf23708eb7fd679d1bd1f18 Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidOnSteam@users.noreply.github.com> Date: Tue, 4 Jun 2024 12:15:25 -0500 Subject: [PATCH] [LazyPrune] Fixed ignored killtime check --- LazyPrune/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LazyPrune/Main.cs b/LazyPrune/Main.cs index 0773772..c826cc3 100644 --- a/LazyPrune/Main.cs +++ b/LazyPrune/Main.cs @@ -95,7 +95,7 @@ public class LazyPrune : MelonMod for (int i = _loadedObjects.Count - 1; i >= 0; i--) { (CVRObjectLoader.LoadedObject loadedObject, var killTime) = _loadedObjects.ElementAt(i); - if (!(killTime < time)) continue; + if (!(killTime < time) || killTime < 0) continue; AttemptPruneObject(loadedObject); // prune expired objects //if (unloaded++ >= MAX_OBJECTS_UNLOADED_AT_ONCE) break; // limit unloads per check }