Skip to content

Commit 1e30af3

Browse files
committed
Added warnings when forceOriginal feature is used.
1 parent 1496114 commit 1e30af3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Terrain.cs

+10-1
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,19 @@ bool forceOriginal
130130
{
131131
lock (patchedBatches)
132132
{
133-
if (!patchedBatches.ContainsKey(batchId) || forceOriginal)
133+
if (!patchedBatches.ContainsKey(batchId))
134134
{
135135
RegisterNewBatch(batchId);
136136
}
137+
else if (forceOriginal)
138+
{
139+
Mod.LogWarning(
140+
$"Patch '{patchName}' forcefully resetting batch "
141+
+ "[{batchId.x}, {batchId.y}, {batchId.z}]!"
142+
);
143+
144+
RegisterNewBatch(batchId);
145+
}
137146
}
138147

139148
PatchOctrees(patchName, batchId, patch);

0 commit comments

Comments
 (0)