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