• R/O
  • HTTP
  • SSH
  • HTTPS

automap: Commit

Automap (OSS) GIT software repository


Commit MetaInfo

Revision15f317f88bd03d04c8ff038db2ddcd20638f2f82 (tree)
Time2020-11-15 07:15:50
Authormelchior <melchior@user...>
Commitermelchior

Log Message

Fix for "New" chunks not being recognised

Change Summary

Incremental Difference

--- a/Automap/Automap.csproj
+++ b/Automap/Automap.csproj
@@ -99,7 +99,7 @@
9999 <Compile Include="Subsystems\JsonGenerator.cs" />
100100 <Compile Include="Subsystems\Snapshot.cs" />
101101 <Compile Include="Data\JSON\BlockPosJson.cs" />
102- <Compile Include="Data\ColumnChanges.cs" />
102+ <Compile Include="Data\ColumnCounter.cs" />
103103 </ItemGroup>
104104 <ItemGroup>
105105 <Folder Include="VS_libs\" />
--- a/Automap/Data/ColumnCounter.cs
+++ b/Automap/Data/ColumnCounter.cs
@@ -40,10 +40,11 @@ namespace Automap
4040 EditTally[chunkY]++;
4141 }
4242
43- public ColumnCounter Update(Vec3i chunkCoord, int chunkSize)
43+ public ColumnCounter Update(Vec3i chunkCoord, int chunkSize, bool partlyNewOrLoaded = false)
4444 {
4545 int chunkY = chunkCoord.Y % chunkSize;
4646 EditTally[chunkY]++;
47+ if (partlyNewOrLoaded) NewOrLoaded = true;;
4748
4849 return this;
4950 }
--- a/Automap/Subsystems/AutomapSystem.cs
+++ b/Automap/Subsystems/AutomapSystem.cs
@@ -138,7 +138,7 @@ namespace Automap
138138
139139 columnCounters.AddOrUpdate(topPosition,
140140 new ColumnCounter(chunkSize, newOrEdit, chunkCoord),
141- (chkPos, chkChng) => chkChng.Update(chunkCoord, chunkSize)
141+ (chkPos, chkChng) => chkChng.Update(chunkCoord, chunkSize, newOrEdit)
142142 );
143143
144144 }
Show on old repository browser