20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: MrHua269 <mrhua269@gmail.com>
|
|
Date: Sat, 18 Apr 2026 09:12:26 +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 e9ca1a15049b0211d10401cb78e953b93afaf6c7..963f8f7664c5e32b3e657723edd15d156d270970 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(io.nanachiyo0721.shiroha.config.modules.misc.FoliaWatchogConfig.tickRegionTimeOutMs)) { // Shiroha - Add config for watchdog timeout
|
|
continue;
|
|
}
|
|
tick.lastPrint = now;
|