Fix sometimes not loading high-detail LODs when on a server
This commit is contained in:
@@ -345,9 +345,15 @@ public class LodQuadTree extends QuadTree<LodRenderSection> implements IDebugRen
|
||||
// prepare this section for rendering
|
||||
if (!renderSection.gpuUploadInProgress()
|
||||
&& renderSection.renderBuffer == null
|
||||
// this check is specifically for N-sized world generators where the higher quality
|
||||
// data source may not exist yet
|
||||
&& renderSection.getFullDataSourceExists())
|
||||
&&
|
||||
(
|
||||
// this check is specifically for N-sized world generators where the higher quality
|
||||
// data source may not exist yet, this is done to prevent holes while waiting for said generator
|
||||
renderSection.getFullDataSourceExists()
|
||||
// if we can't request generation we don't want to check for full data existing
|
||||
// since that will prevent server LODs from loading high-detail LODs where quadrants haven't been generated.
|
||||
|| !this.fullDataSourceProvider.canQueueRetrieval())
|
||||
)
|
||||
{
|
||||
nodesNeedingLoading.add(renderSection);
|
||||
}
|
||||
@@ -424,7 +430,7 @@ public class LodQuadTree extends QuadTree<LodRenderSection> implements IDebugRen
|
||||
if (renderSection != null)
|
||||
{
|
||||
// this data source may now exist
|
||||
renderSection.updateFullDataSourceExists();
|
||||
renderSection.updateFullDataSourceExists();
|
||||
|
||||
if (renderSection.canRender())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user