Skip to content

Commit

Permalink
Add support for AsyncCatcher.enabled in AsyncCatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
spring-dependency-management authored Jan 27, 2025
1 parent ae7de53 commit ea36423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paper-server/src/main/java/org/spigotmc/AsyncCatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class AsyncCatcher {
public static boolean enabled = true;

public static void catchOp(String reason) {
if (!ca.spottedleaf.moonrise.common.util.TickThread.isTickThread()) { // Paper - chunk system
if (!ca.spottedleaf.moonrise.common.util.TickThread.isTickThread() && org.spigotmc.AsyncCatcher.enabled) { // Paper - chunk system
MinecraftServer.LOGGER.error("Thread {} failed main thread check: {}", Thread.currentThread().getName(), reason, new Throwable()); // Paper
throw new IllegalStateException("Asynchronous " + reason + "!");
}
Expand Down

0 comments on commit ea36423

Please sign in to comment.