prevent world gen queue until half of the update tasks have finished

This commit is contained in:
James Seibel
2024-03-19 07:28:14 -05:00
parent 8f9caa5d9a
commit a1950ebccc
@@ -188,7 +188,7 @@ public class GeneratedFullDataSourceProvider extends FullDataSourceProviderV2 im
ThreadPoolExecutor updateExecutor = ThreadPoolUtil.getUpdatePropagatorExecutor();
if (updateExecutor == null || updateExecutor.getQueue().size() >= MAX_UPDATE_TASK_COUNT)
if (updateExecutor == null || updateExecutor.getQueue().size() >= MAX_UPDATE_TASK_COUNT / 2)
{
// don't queue additional world gen requests if the updater is behind
return false;