From 14961145fca27bc43f35b5059751bd8c53f07d3a Mon Sep 17 00:00:00 2001 From: Esper Thomson Date: Fri, 15 Mar 2024 00:58:13 -0400 Subject: [PATCH] Fixed broken `forceOriginal` feature. --- src/Terrain.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Terrain.cs b/src/Terrain.cs index 6bd0429..d97c644 100644 --- a/src/Terrain.cs +++ b/src/Terrain.cs @@ -169,7 +169,7 @@ string GetPath(string origDir) => Path.Combine( { File.Copy(origPath, newPath, overwrite: true); - patchedBatches.Add(batchId, new PatchedBatch(newPath)); + patchedBatches[batchId] = new PatchedBatch(newPath); return; } } @@ -190,7 +190,7 @@ string GetPath(string origDir) => Path.Combine( writer.Write((uint)0); } - patchedBatches.Add(batchId, new PatchedBatch(newPath)); + patchedBatches[batchId] = new PatchedBatch(newPath); } }