Merge branch 'main' of https://gitlab.com/jeseibel/distant-horizons-core
This commit is contained in:
+1
@@ -362,6 +362,7 @@ public class CompleteFullDataSource extends FullDataArrayAccessor implements IFu
|
||||
// the difference in detail levels is very large,
|
||||
// check if the posToWrite is in a corner of posToTest
|
||||
byte sectPerData = (byte) BitShiftUtil.powerOfTwo(posToWrite.sectionDetailLevel - posToTest.sectionDetailLevel - SECTION_SIZE_OFFSET);
|
||||
LodUtil.assertTrue(sectPerData != 0);
|
||||
return posToTest.sectionX % sectPerData == 0 && posToTest.sectionZ % sectPerData == 0;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -373,7 +373,7 @@ public class FullDataFileHandler implements IFullDataSourceProvider
|
||||
private void writeChunkDataToMetaFile(DhSectionPos sectionPos, ChunkSizedFullDataAccessor chunkData)
|
||||
{
|
||||
FullDataMetaFile metaFile = this.fileBySectionPos.get(sectionPos);
|
||||
if (metaFile == null)
|
||||
if (metaFile == null && sectionPos.sectionDetailLevel <= this.topDetailLevel.get())
|
||||
{
|
||||
// create a new file if one doesn't exist,
|
||||
// this is done so we don't end up with holes where LODs should have been generated
|
||||
|
||||
Reference in New Issue
Block a user