Centralized executor

This commit is contained in:
Anuken
2022-04-13 17:38:18 -04:00
parent c01348af29
commit 4b5d833c74
9 changed files with 13 additions and 18 deletions

View File

@@ -37,7 +37,6 @@ public class MapGenerateDialog extends BaseDialog{
int scaling = mobile ? 3 : 1;
Table filterTable;
ExecutorService executor = Threads.executor(1);
Future<?> result;
boolean generating;
@@ -397,7 +396,7 @@ public class MapGenerateDialog extends BaseDialog{
var copy = filters.copy();
result = executor.submit(() -> {
result = mainExecutor.submit(() -> {
try{
int w = pixmap.width;
world.setGenerating(true);