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); } }