From 585b2ebdd5acc364d22822837ee5cd06e6ddc4cd Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 19 May 2019 12:07:37 +1000 Subject: [PATCH] Tweak thresholds for can't keep up message --- nms-patches/MinecraftServer.patch | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nms-patches/MinecraftServer.patch b/nms-patches/MinecraftServer.patch index 477b32e6ac..18c692c3a6 100644 --- a/nms-patches/MinecraftServer.patch +++ b/nms-patches/MinecraftServer.patch @@ -460,8 +460,12 @@ } MinecraftServer.LOGGER.info("Saving worlds"); -@@ -548,11 +748,13 @@ - if (i > 2000L && this.nextTick - this.lastOverloadTime >= 15000L) { +@@ -545,14 +745,16 @@ + while (this.isRunning) { + long i = SystemUtils.getMonotonicMillis() - this.nextTick; + +- if (i > 2000L && this.nextTick - this.lastOverloadTime >= 15000L) { ++ if (i > 5000L && this.nextTick - this.lastOverloadTime >= 30000L) { // CraftBukkit long j = i / 50L; + if (server.getWarnOnOverload()) // CraftBukkit