Fix the try catch block in LodNodeGenWorker

Try catch finally blocks need catch to work properly, who knew.
This commit is contained in:
James Seibel
2021-08-12 21:00:35 -05:00
parent bbaa583a6d
commit 7a4347b288
@@ -229,6 +229,10 @@ public class LodNodeGenWorker implements IWorker
}// if in range
}
catch (Exception e)
{
//e.printStackTrace();
}
finally
{
// decrement how many threads are running
@@ -251,7 +255,6 @@ public class LodNodeGenWorker implements IWorker
ServerChunkProvider chunkSource = serverWorld.getChunkSource();
ChunkGenerator chunkGen = chunkSource.generator;
// generate the terrain (this is thread safe)
ChunkStatus.EMPTY.generate(serverWorld, chunkGen, serverWorld.getStructureManager(), (ServerWorldLightManager) serverWorld.getLightEngine(), null, chunkList);
// override the chunk status so we can run the next generator stage
@@ -346,7 +349,9 @@ public class LodNodeGenWorker implements IWorker
// generates the same and it looks really bad.
nodeList = lodNodeBuilder.generateLodNodeFromChunk(chunk, new LodBuilderConfig(true, true, false));
}
for(LodQuadTreeNode node : nodeList) {
for(LodQuadTreeNode node : nodeList)
{
lodDim.addNode(node);
}
}