From 719daa8bbf3848f11ed34937e5d8c2ae29117ea7 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Fri, 4 Mar 2022 09:33:13 +0100 Subject: [PATCH] Updated Upstream (CraftBukkit) Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing CraftBukkit Changes: 4ed5af5e SPIGOT-6956: Reduce differences caused by setKeepSpawnInMemory(false) 21fe78aa SPIGOT-6957: Bad default value for WorldCreator#generatorSettings ce373be6 PR-1022: Fix get HighestBlockAt in chunk snapshot --- patches/server/0005-MC-Dev-fixes.patch | 4 ++-- patches/server/0007-MC-Utils.patch | 10 ++++---- patches/server/0011-Timings-v2.patch | 20 ++++++++-------- ...ient-crashes-server-lists-and-Mojang.patch | 6 ++--- ...026-Further-improve-server-tick-loop.patch | 10 ++++---- patches/server/0035-Optimize-explosions.patch | 4 ++-- ...ckPhysicsEvent-if-a-plugin-has-a-lis.patch | 4 ++-- ...-possibility-for-getServer-singleton.patch | 4 ++-- .../0096-Optimize-UserCache-Thread-Safe.patch | 4 ++-- ...le-async-calls-to-restart-the-server.patch | 6 ++--- ...oleAppender-for-console-improvements.patch | 10 ++++---- ...nt-extended-PaperServerListPingEvent.patch | 4 ++-- ...dd-Early-Warning-Feature-to-WatchDog.patch | 6 ++--- ...58-Asynchronous-chunk-IO-and-loading.patch | 4 ++-- .../0286-Optimize-World-Time-Updates.patch | 4 ++-- patches/server/0318-Server-Tick-Events.patch | 6 ++--- ...isPrimaryThread-and-MinecraftServer-.patch | 6 ++--- ...le-Keep-Spawn-Loaded-range-per-world.patch | 24 ++++++++----------- patches/server/0347-Optimize-Hoppers.patch | 4 ++-- .../0359-Increase-Light-Queue-Size.patch | 4 ++-- ...-Add-tick-times-API-and-mspt-command.patch | 8 +++---- .../0393-Improved-Watchdog-Support.patch | 24 +++++++++---------- .../server/0416-misc-debugging-dumps.patch | 10 ++++---- ...Wait-for-Async-Tasks-during-shutdown.patch | 6 ++--- ...ld-Difficulty-Remembering-Difficulty.patch | 10 ++++---- ...-incremental-chunk-and-player-saving.patch | 6 ++--- .../0503-Cache-block-data-strings.patch | 4 ++-- ...-non-whitelisted-player-when-white-l.patch | 4 ++-- ...8-Added-ServerResourcesReloadedEvent.patch | 6 ++--- patches/server/0579-Add-PaperRegistry.patch | 4 ++-- .../0580-Add-StructuresLocateEvent.patch | 4 ++-- patches/server/0594-EntityMoveEvent.patch | 4 ++-- ...telist-use-configurable-kick-message.patch | 4 ++-- .../0667-Add-PlayerKickEvent-causes.patch | 4 ++-- .../0750-Execute-chunk-tasks-mid-tick.patch | 6 ++--- ...sks-fairly-for-worlds-while-waiting-.patch | 6 ++--- patches/server/0874-Custom-Potion-Mixes.patch | 6 ++--- ...876-Fix-World-locateNearestStructure.patch | 4 ++-- .../0878-Fix-deadlock-on-watchdog-crash.patch | 4 ++-- work/CraftBukkit | 2 +- 40 files changed, 133 insertions(+), 137 deletions(-) diff --git a/patches/server/0005-MC-Dev-fixes.patch b/patches/server/0005-MC-Dev-fixes.patch index bb449e904..840be8059 100644 --- a/patches/server/0005-MC-Dev-fixes.patch +++ b/patches/server/0005-MC-Dev-fixes.patch @@ -183,10 +183,10 @@ index 2a6969baca7c07c52223672de58886dd05c032eb..a620e53021e02da1663b8d8b68d429b2 public void write(FriendlyByteBuf buf) { buf.writeInt(this.playerId); diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 8754e5899067bc5e8e83a6264c6fcc38846f6baa..425fe208a1bf5490421d4256a8c47c16e47362d0 100644 +index 89522ebf7b11801cf8b9893a1bae50a1ee88ff79..a47303382db64d8121c6252d70739d597cfd6231 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -1778,7 +1778,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop S spin(Function serverFactory) { AtomicReference atomicreference = new AtomicReference(); -@@ -967,6 +968,9 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop implements CommandSource, AutoCloseable { -@@ -899,6 +899,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop= 5000000000L) { -@@ -1268,15 +1289,18 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop 0 && this.tickCount % this.autosavePeriod == 0) { // CraftBukkit @@ -854,7 +854,7 @@ index 32dbb6e7add72ca8068e431e607a9ff570157ff8..aca0adb9f714f96b10546b837d08fe9e this.profiler.push("tallying"); long l = this.tickTimes[this.tickCount % 100] = Util.getNanos() - i; -@@ -1287,30 +1311,29 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop { -@@ -2314,7 +2316,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop 0; // Paper diff --git a/patches/server/0359-Increase-Light-Queue-Size.patch b/patches/server/0359-Increase-Light-Queue-Size.patch index d8dbdbbc6..34095a978 100644 --- a/patches/server/0359-Increase-Light-Queue-Size.patch +++ b/patches/server/0359-Increase-Light-Queue-Size.patch @@ -29,10 +29,10 @@ index 98adf2fd1c2e9fe75456266ea1d7604fe64109b1..d9c59ea6faa7155d415c89228c22da33 } diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 20bbe968b03b32a6124dbf9df1fbf9da71cd668f..49f86ccc3e0d5ba7d42e353a963ab0d4a18e251f 100644 +index 8e49a648671b4d4c0d07af35ba6558b63bbf28ee..e621d683df00a7d095cc72f74357224208b0dbca 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -813,7 +813,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop S spin(Function serverFactory) { AtomicReference atomicreference = new AtomicReference(); Thread thread = new Thread(() -> { -@@ -915,6 +918,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop completablefuture = CompletableFuture.supplyAsync(() -> { Stream stream = dataPacks.stream(); // CraftBukkit - decompile error -@@ -2032,6 +2038,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop(Class apiClass, ResourceKey> resourceKey) { +} diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 0f03525066b818a81583618e9a80f245032493b7..6d1dd3d33bcaa7a1262a53c4fed57564c74df286 100644 +index 670180dd48a8e04b76c65242d2b316d52ae9090f..14b1524fcd27341eb8257f3925b94715bd4da152 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -2038,6 +2038,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop 0; // Paper diff --git a/patches/server/0621-forced-whitelist-use-configurable-kick-message.patch b/patches/server/0621-forced-whitelist-use-configurable-kick-message.patch index 399824040..4a57708ea 100644 --- a/patches/server/0621-forced-whitelist-use-configurable-kick-message.patch +++ b/patches/server/0621-forced-whitelist-use-configurable-kick-message.patch @@ -5,7 +5,7 @@ Subject: [PATCH] forced whitelist: use configurable kick message diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index c1e9b32fd8f147e0cbbe830a62b8b51ea62c9d30..1cac02ba1eced8c1cda0de750dfe640acdca21c0 100644 +index 9fb306fdb2071ffcd16e9bb83da75c8923f2ba8e..abb6b8f3b69826d69956a248770fc7b87745ba9a 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -73,7 +73,6 @@ import net.minecraft.gametest.framework.GameTestTicker; @@ -16,7 +16,7 @@ index c1e9b32fd8f147e0cbbe830a62b8b51ea62c9d30..1cac02ba1eced8c1cda0de750dfe640a import net.minecraft.network.protocol.game.ClientboundChangeDifficultyPacket; import net.minecraft.network.protocol.game.ClientboundSetTimePacket; import net.minecraft.network.protocol.status.ServerStatus; -@@ -2120,7 +2119,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop