Reuse the ForkJoinPool in ItemList

This commit is contained in:
Balthild authored and Jason Mitchell committed 2020-05-25 13:54:38 -07:00
1 parent 458947628c
commit 4c37971a2b
3 files changed
+4 -12

No files matched your search

-10
View File
@@ -29,16 +29,6 @@ import java.util.concurrent.ForkJoinPool;
public abstract class GuiRecipe extends GuiContainer implements IGuiContainerOverlay, IGuiClientSide, IGuiHandleMouseWheel, IContainerTooltipHandler
{
protected static final ForkJoinPool forkJoinPool;
static {
int poolSize = Runtime.getRuntime().availableProcessors() * 2 / 3;
if (poolSize < 1)
poolSize = 1;
forkJoinPool = new ForkJoinPool(poolSize);
}
public ArrayList<? extends IRecipeHandler> currenthandlers = new ArrayList<>();
public int page;