Automap (OSS) GIT software repository
Revision | 15f317f88bd03d04c8ff038db2ddcd20638f2f82 (tree) |
---|---|
Time | 2020-11-15 07:15:50 |
Author | ![]() |
Commiter | melchior |
Fix for "New" chunks not being recognised
@@ -99,7 +99,7 @@ | ||
99 | 99 | <Compile Include="Subsystems\JsonGenerator.cs" /> |
100 | 100 | <Compile Include="Subsystems\Snapshot.cs" /> |
101 | 101 | <Compile Include="Data\JSON\BlockPosJson.cs" /> |
102 | - <Compile Include="Data\ColumnChanges.cs" /> | |
102 | + <Compile Include="Data\ColumnCounter.cs" /> | |
103 | 103 | </ItemGroup> |
104 | 104 | <ItemGroup> |
105 | 105 | <Folder Include="VS_libs\" /> |
@@ -40,10 +40,11 @@ namespace Automap | ||
40 | 40 | EditTally[chunkY]++; |
41 | 41 | } |
42 | 42 | |
43 | - public ColumnCounter Update(Vec3i chunkCoord, int chunkSize) | |
43 | + public ColumnCounter Update(Vec3i chunkCoord, int chunkSize, bool partlyNewOrLoaded = false) | |
44 | 44 | { |
45 | 45 | int chunkY = chunkCoord.Y % chunkSize; |
46 | 46 | EditTally[chunkY]++; |
47 | + if (partlyNewOrLoaded) NewOrLoaded = true;; | |
47 | 48 | |
48 | 49 | return this; |
49 | 50 | } |
@@ -138,7 +138,7 @@ namespace Automap | ||
138 | 138 | |
139 | 139 | columnCounters.AddOrUpdate(topPosition, |
140 | 140 | new ColumnCounter(chunkSize, newOrEdit, chunkCoord), |
141 | - (chkPos, chkChng) => chkChng.Update(chunkCoord, chunkSize) | |
141 | + (chkPos, chkChng) => chkChng.Update(chunkCoord, chunkSize, newOrEdit) | |
142 | 142 | ); |
143 | 143 | |
144 | 144 | } |