Fix LodQuadTree clear render cache not working at extreme distances

This commit is contained in:
James Seibel
2024-03-10 21:15:37 -05:00
parent 02a1445732
commit 46ba2630f1
@@ -437,6 +437,9 @@ public class LodQuadTree extends QuadTree<LodRenderSection> implements AutoClose
{
LOGGER.info("Clearing render cache...");
// delete the cache first so the nodes won't accidentally try re-loading the old data
this.renderSourceProvider.deleteRenderCache();
// clear the tree
Iterator<QuadNode<LodRenderSection>> nodeIterator = this.nodeIterator();
while (nodeIterator.hasNext())
@@ -449,7 +452,6 @@ public class LodQuadTree extends QuadTree<LodRenderSection> implements AutoClose
}
}
this.renderSourceProvider.deleteRenderCache();
LOGGER.info("Render cache invalidated, please wait a moment for everything to reload...");
}
catch (Exception e)