mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-20 07:19:23 +00:00
11 lines
584 B
Diff
11 lines
584 B
Diff
--- a/net/minecraft/network/Connection.java
|
|
+++ b/net/minecraft/network/Connection.java
|
|
@@ -325,6 +_,7 @@
|
|
|
|
private static void syncAfterConfigurationChange(ChannelFuture future) {
|
|
try {
|
|
+ if (ca.spottedleaf.moonrise.common.util.TickThread.isTickThread()) net.minecraft.server.MinecraftServer.getServer().managedBlock(future::isDone); // ShreddedPaper - Don't block main thread in Connection#syncAfterConfigurationChange
|
|
future.syncUninterruptibly();
|
|
} catch (Exception var2) {
|
|
if (var2 instanceof ClosedChannelException) {
|