From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
Date: Fri, 30 Aug 2024 18:34:32 -0700
Subject: [PATCH] Add watchdog thread

When regions take too long, having the server print the stacktrace
of the ticking region should help debug the cause.

diff --git a/src/main/java/org/spigotmc/WatchdogThread.java b/src/main/java/org/spigotmc/WatchdogThread.java
index dced8899be0bb8d562093dc3a7673ed8185b85a6..8228752184aaf91288092c1c60e8a431723ded41 100644
--- a/src/main/java/org/spigotmc/WatchdogThread.java
+++ b/src/main/java/org/spigotmc/WatchdogThread.java
@@ -159,7 +159,7 @@ public class WatchdogThread extends ca.spottedleaf.moonrise.common.util.TickThre
         }
     }
 
-    private static void dumpThread(ThreadInfo thread, Logger log) {
+    public static void dumpThread(ThreadInfo thread, Logger log) { // Folia - watchdog
         log.log(Level.SEVERE, "------------------------------");
 
         log.log(Level.SEVERE, "Current Thread: " + thread.getThreadName());
