From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: MrHua269 Date: Sun, 12 Jan 2025 10:51:21 +0800 Subject: [PATCH] Add config for watchdog timeout diff --git a/io/papermc/paper/threadedregions/FoliaWatchdogThread.java b/io/papermc/paper/threadedregions/FoliaWatchdogThread.java index 258d82ab2c78482e1561343e8e1f81fc33f1895e..967107c0f4a18a29877883ccddb4d7962f4b5788 100644 --- a/io/papermc/paper/threadedregions/FoliaWatchdogThread.java +++ b/io/papermc/paper/threadedregions/FoliaWatchdogThread.java @@ -65,7 +65,7 @@ public final class FoliaWatchdogThread extends Thread { for (final RunningTick tick : ticks) { final long elapsed = now - tick.lastPrint; - if (elapsed <= TimeUnit.SECONDS.toNanos(5L)) { + if (elapsed <= TimeUnit.MILLISECONDS.toNanos(me.earthme.luminol.config.modules.misc.FoliaWatchogConfig.tickRegionTimeOutMs)) { // Luminol - Add config for watchdog timeout continue; } tick.lastPrint = now;