From d5664b261493f609e7b680ca5b506c080f64cbd9 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Mon, 23 Sep 2024 16:43:20 +0100 Subject: [PATCH] Swap chunk merging so we're not making the mission chunks too big --- KeepersCompound.LGS/Database/ObjectHierarchy.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/KeepersCompound.LGS/Database/ObjectHierarchy.cs b/KeepersCompound.LGS/Database/ObjectHierarchy.cs index 9aec85d..921ded2 100644 --- a/KeepersCompound.LGS/Database/ObjectHierarchy.cs +++ b/KeepersCompound.LGS/Database/ObjectHierarchy.cs @@ -44,7 +44,8 @@ public class ObjectHierarchy if (gam != null && gam.Chunks.TryGetValue(name, out var rawGamChunk)) { var gamChunk = (T)rawGamChunk; - chunk.Merge(gamChunk); + gamChunk.Merge(chunk); + return gamChunk; } return chunk; }