src: update TickingThread

This commit is contained in:
luk
2026-01-29 20:36:30 +00:00
parent b842725530
commit a99852f42e

View File

@@ -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)) {