mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
[LazyPrune] Fixed ignored killtime check
This commit is contained in:
parent
c94ce9331a
commit
6f53193a0c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue