minor edits

This commit is contained in:
minjaesong
2019-11-18 12:26:43 +09:00
parent a31825dbce
commit fc15dd1f65
2 changed files with 2 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ object ThreadExecutor {
private fun checkShutdown() {
if (!executor.isShutdown) return
if (executor.isShutdown&& !executor.isTerminated)
throw IllegalStateException("Thread pool is still running")
throw IllegalStateException("Pool is closed, come back when all the threads are terminated.")
executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors())
}

View File

@@ -21,6 +21,7 @@ class WorldgenLoadScreen(private val world: GameWorld, screenToBeLoaded: IngameI
companion object {
private const val WIDTH_RATIO = 0.6
private const val PREVIEW_UPDATE_RATE = 1/8f
}
private val previewWidth = (AppLoader.screenW * WIDTH_RATIO).roundToInt()