From 77320289b59de1a87a9787e231b53b4732507ab0 Mon Sep 17 00:00:00 2001 From: Ceikry Date: Mon, 16 May 2022 12:27:45 +0000 Subject: [PATCH] No longer running ticks in a coroutine, should address apparent lag after server has been running a while --- Server/src/main/kotlin/rs09/worker/MajorUpdateWorker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/kotlin/rs09/worker/MajorUpdateWorker.kt b/Server/src/main/kotlin/rs09/worker/MajorUpdateWorker.kt index 147ef28a2..b0bc22ecb 100644 --- a/Server/src/main/kotlin/rs09/worker/MajorUpdateWorker.kt +++ b/Server/src/main/kotlin/rs09/worker/MajorUpdateWorker.kt @@ -43,7 +43,7 @@ class MajorUpdateWorker { val start = System.currentTimeMillis() Server.heartbeat() - GlobalScope.launch { handleTickActions() } + handleTickActions() //Handle daily restart if enabled if(sdf.format(Date()).toInt() == 0){