diff --git a/paper-server/patches/sources/net/minecraft/network/protocol/common/custom/DiscardedPayload.java.patch b/paper-server/patches/sources/net/minecraft/network/protocol/common/custom/DiscardedPayload.java.patch index 034c2906c..38c086da6 100644 --- a/paper-server/patches/sources/net/minecraft/network/protocol/common/custom/DiscardedPayload.java.patch +++ b/paper-server/patches/sources/net/minecraft/network/protocol/common/custom/DiscardedPayload.java.patch @@ -1,6 +1,6 @@ --- a/net/minecraft/network/protocol/common/custom/DiscardedPayload.java +++ b/net/minecraft/network/protocol/common/custom/DiscardedPayload.java -@@ -4,13 +_,15 @@ +@@ -4,13 +_,14 @@ import net.minecraft.network.codec.StreamCodec; import net.minecraft.resources.ResourceLocation; @@ -13,7 +13,7 @@ + }, buffer -> { int i = buffer.readableBytes(); if (i >= 0 && i <= maxSize) { - buffer.skipBytes(i); +- buffer.skipBytes(i); - return new DiscardedPayload(id); + return new DiscardedPayload(id, buffer.readBytes(i)); // CraftBukkit } else { diff --git a/paper-server/patches/sources/net/minecraft/server/MinecraftServer.java.patch b/paper-server/patches/sources/net/minecraft/server/MinecraftServer.java.patch index 8b04cb50d..eb9c14d4a 100644 --- a/paper-server/patches/sources/net/minecraft/server/MinecraftServer.java.patch +++ b/paper-server/patches/sources/net/minecraft/server/MinecraftServer.java.patch @@ -69,7 +69,8 @@ + public static S spin(Function threadFunction) { AtomicReference atomicReference = new AtomicReference<>(); - Thread thread = new Thread(() -> atomicReference.get().runServer(), "Server thread"); +- Thread thread = new Thread(() -> atomicReference.get().runServer(), "Server thread"); ++ Thread thread = new ca.spottedleaf.moonrise.common.util.TickThread(() -> atomicReference.get().runServer(), "Server thread"); thread.setUncaughtExceptionHandler((thread1, exception) -> LOGGER.error("Uncaught exception in server thread", exception)); + thread.setPriority(Thread.NORM_PRIORITY+2); // Paper - Perf: Boost priority if (Runtime.getRuntime().availableProcessors() > 4) {