This is generated by calude As it's only change the display, no tests and review are required
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..56c0cac6e6e4c86a1db3c27a2c850d65b5b58c55 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(moe.monnairealms.camellia.config.modules.misc.FoliaWatchogConfig.tickRegionTimeOutMs)) { // Camellia - Add config for watchdog timeout
|
|
continue;
|
|
}
|
|
tick.lastPrint = now;
|