9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-19 15:09:25 +00:00

Remove toggleable async catcher

This option is useless, especially provided as an config option,
since the normal server owners have no reasons to use it.
And even for developers, this option is still unnecessary to use.
It's also a very simple toggle which can be done in
local stage during debugging or fixing specific issue.
This commit is contained in:
Dreeam
2025-11-23 04:34:40 -05:00
parent d04e27db07
commit f2a6120c85
4 changed files with 0 additions and 18 deletions

View File

@@ -1,18 +0,0 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Taiyou06 <kaandindar21@gmail.com>
Date: Tue, 8 Jul 2025 12:08:25 +0200
Subject: [PATCH] Toggleable async catcher
diff --git a/src/main/java/org/spigotmc/AsyncCatcher.java b/src/main/java/org/spigotmc/AsyncCatcher.java
index 7e7a0ed944961af5ab7a49bc659da2862d2e2c82..2522890b326c21434e10b90c774efbc8590117b3 100644
--- a/src/main/java/org/spigotmc/AsyncCatcher.java
+++ b/src/main/java/org/spigotmc/AsyncCatcher.java
@@ -5,6 +5,7 @@ import net.minecraft.server.MinecraftServer;
public class AsyncCatcher {
public static void catchOp(String reason) {
+ if (!org.dreeam.leaf.config.modules.misc.AsyncCatcherConfig.enabled) return; // Leaf - Toggleable async catcher
if (!ca.spottedleaf.moonrise.common.util.TickThread.isTickThread()) { // Paper - chunk system
MinecraftServer.LOGGER.error("Thread {} failed main thread check: {}", Thread.currentThread().getName(), reason, new Throwable()); // Paper
throw new IllegalStateException("Asynchronous " + reason + "!");