mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
minor edits
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user