From a99852f42e643a29a4d4ad12f9064d5cd7bef52b Mon Sep 17 00:00:00 2001 From: luk Date: Thu, 29 Jan 2026 20:36:30 +0000 Subject: [PATCH] src: update TickingThread --- .../hypixel/hytale/server/core/util/thread/TickingThread.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/hypixel/hytale/server/core/util/thread/TickingThread.java b/src/com/hypixel/hytale/server/core/util/thread/TickingThread.java index d7124c43..eabc2d20 100644 --- a/src/com/hypixel/hytale/server/core/util/thread/TickingThread.java +++ b/src/com/hypixel/hytale/server/core/util/thread/TickingThread.java @@ -2,6 +2,8 @@ package com.hypixel.hytale.server.core.util.thread; import com.hypixel.hytale.logger.HytaleLogger; import com.hypixel.hytale.metrics.metric.HistoricMetric; +import com.hypixel.hytale.server.core.HytaleServer; +import com.hypixel.hytale.server.core.ShutdownReason; import javax.annotation.Nonnull; import javax.annotation.Nullable; @@ -76,6 +78,7 @@ public abstract class TickingThread implements Runnable { Thread.currentThread().interrupt(); } catch (Throwable var10) { HytaleLogger.getLogger().at(Level.SEVERE).withCause(var10).log("Exception in thread %s:", this.thread); + HytaleServer.get().shutdownServer(ShutdownReason.CRASH.withMessage("TickingThread crash: " + var10.getMessage())); } if (this.needsShutdown.getAndSet(false)) {