- Unfortunately, have to revert r34731 - breaks mobile Forge (at least when running on desktop, e.g. for debugging purposes, but quite possibly on Android itself as well) and does not allow to cast anything from hand at all, making the single click on a card function as a selection (but not allowing to actually cast the spell).

This commit is contained in:
Agetian
2017-07-13 20:08:47 +00:00
parent 03f636a726
commit ea4f8b67f2
3 changed files with 11 additions and 55 deletions

View File

@@ -20,10 +20,8 @@ public class ThreadUtil {
}
}
// Use a single game thread, rather than a pool of them, because when something
// needs to execute on the game thread, it's because it's not thread safe.
private final static ExecutorService gameThread = Executors.newSingleThreadExecutor(new WorkerThreadFactory("Game"));
private static ExecutorService getGameThreadPool() { return gameThread; }
private final static ExecutorService gameThreadPool = Executors.newCachedThreadPool(new WorkerThreadFactory("Game"));
private static ExecutorService getGameThreadPool() { return gameThreadPool; }
private final static ScheduledExecutorService scheduledPool = Executors.newScheduledThreadPool(2, new WorkerThreadFactory("Delayed"));
private static ScheduledExecutorService getScheduledPool() { return scheduledPool; }