From bff6bbdb1d7fbdb5bfa9ddde36361c10bfee1cec Mon Sep 17 00:00:00 2001 From: violetc <58360096+s-yh-china@users.noreply.github.com> Date: Mon, 23 Sep 2024 02:51:56 +0800 Subject: [PATCH] Update Paper --- gradle.properties | 2 +- patches/server/0001-Build-changes.patch | 8 +++---- patches/server/0003-Delete-Timings.patch | 22 +++++++++---------- .../server/0007-Leaves-Protocol-Core.patch | 4 ++-- patches/server/0010-Fakeplayer-support.patch | 14 ++++++------ ...23-Config-to-disable-method-profiler.patch | 4 ++-- patches/server/0035-PCA-sync-protocol.patch | 4 ++-- .../server/0040-Stackable-ShulkerBoxes.patch | 4 ++-- .../0048-Fix-update-suppression-crash.patch | 4 ++-- patches/server/0049-Bedrock-break-list.patch | 4 ++-- .../server/0079-Disable-packet-limit.patch | 4 ++-- patches/server/0095-Replay-Mod-API.patch | 6 ++--- .../server/0108-Make-Item-tick-vanilla.patch | 12 +++++----- patches/server/0118-Fast-resume.patch | 6 ++--- 14 files changed, 49 insertions(+), 49 deletions(-) diff --git a/gradle.properties b/gradle.properties index b8e0b7b9..92439adb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ group=org.leavesmc.leaves version=1.21.1-R0.1-SNAPSHOT mcVersion=1.21.1 -paperRef=13a23951d7142c3c4c39bd5e9bddac190b90c151 +paperRef=1cb2bf466fb9fc42134be7e18d160f991d353fdf preVersion=false updatingMinecraft=false org.gradle.jvmargs=-Xmx2G diff --git a/patches/server/0001-Build-changes.patch b/patches/server/0001-Build-changes.patch index 875c4ed2..7a6955d3 100644 --- a/patches/server/0001-Build-changes.patch +++ b/patches/server/0001-Build-changes.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Build changes diff --git a/build.gradle.kts b/build.gradle.kts -index 421f6b3dc8890d63d2e7aa774d0bf8f7e15890ab..cf8a410dedf26e48617ccad7e899edc26cf5f7c9 100644 +index 648281575eb8d45a5c06549eb3d0f517c086fe64..ff37a984cdbf20d7f0d7b75c7f60a5d2c1e2b894 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,7 +13,7 @@ configurations.named(log4jPlugins.compileClasspathConfigurationName) { @@ -184,10 +184,10 @@ index 790bad0494454ca12ee152e3de6da3da634d9b20..c060857cb0551fff8f5033553b887f3a private static final String BUILD_DEV = "DEV"; diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 23ddd26af762c1cd7fb3920669abb96b3213ab37..5be09db47028094ea52889f3c74b6a928278346f 100644 +index 696d075ca2883f3c37e35f983c4d020e5db89d16..f1b28f4f383c682a52b6aa44dfbdf30944537ecf 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -1244,7 +1244,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop implements ServerInfo, ChunkIOErrorReporter, CommandSource, AutoCloseable, ca.spottedleaf.moonrise.patches.chunk_system.server.ChunkSystemMinecraftServer { // Paper - rewrite chunk system private static MinecraftServer SERVER; // Paper -@@ -1039,7 +1034,6 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop { entityplayer.connection.suspendFlushing(); }); @@ -892,7 +892,7 @@ index 5be09db47028094ea52889f3c74b6a928278346f..0d362b80044f05e3c6cae9d0f3ab9af6 // Paper start - Folia scheduler API ((io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler) Bukkit.getGlobalRegionScheduler()).tick(); getAllLevels().forEach(level -> { -@@ -1741,21 +1729,16 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop S spin(Function serverFactory) { AtomicReference atomicreference = new AtomicReference(); Thread thread = new ca.spottedleaf.moonrise.common.util.TickThread(() -> { // Paper - rewrite chunk system -@@ -746,6 +748,8 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop 0) { diff --git a/src/main/java/net/minecraft/world/entity/item/ItemEntity.java b/src/main/java/net/minecraft/world/entity/item/ItemEntity.java -index 607f1a9802eb0ff4865af4c53f302128a6e6fe02..929a9bee808e8216dacb74dc58dbeee612126afe 100644 +index 4423973d4d9a2c3879d98d1d4c8b8c117c677ac5..4259852e2387c87cb692e44b2d1a3f5d1cfcd616 100644 --- a/src/main/java/net/minecraft/world/entity/item/ItemEntity.java +++ b/src/main/java/net/minecraft/world/entity/item/ItemEntity.java @@ -22,10 +22,12 @@ import net.minecraft.world.entity.EntityType; @@ -82,7 +82,7 @@ index 607f1a9802eb0ff4865af4c53f302128a6e6fe02..929a9bee808e8216dacb74dc58dbeee6 import org.bukkit.event.entity.EntityPickupItemEvent; import org.bukkit.event.entity.EntityRemoveEvent; import org.bukkit.event.player.PlayerPickupItemEvent; -@@ -315,10 +318,49 @@ public class ItemEntity extends Entity implements TraceableEntity { +@@ -314,10 +317,49 @@ public class ItemEntity extends Entity implements TraceableEntity { private boolean isMergable() { ItemStack itemstack = this.getItem(); diff --git a/patches/server/0048-Fix-update-suppression-crash.patch b/patches/server/0048-Fix-update-suppression-crash.patch index b2165cd9..9f4501c0 100644 --- a/patches/server/0048-Fix-update-suppression-crash.patch +++ b/patches/server/0048-Fix-update-suppression-crash.patch @@ -20,10 +20,10 @@ index 1f7f68aad97ee73763c042837f239bdc7167db55..1e8025ecb14acc7c24917793c97f5435 if (exception instanceof ReportedException) { ReportedException reportedexception = (ReportedException) exception; diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 5b1ab285e5a4020320d576034d9dbe6e3369b0c3..717754130af0e97b89b0b754328ca80e41dc46d1 100644 +index bf1bb8fa681360c3b634bcd6d8979cc2c5137957..236ad5ac3f4665ff940c6505ca1d01c6ace7f316 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -1789,7 +1789,13 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop= i) { return (List) object; diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 1c0a99c335162a9cd983d4c4d2cfeaf12be93899..a598fcf9d67ec29668b36f70d6980831f7de2fea 100644 +index 53c97644f30e61d7e2ccab2024714b8aa135287f..0c43170b31363beca32407bddeee33ef9404d09a 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -1692,7 +1692,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop 0 && this.pickupDelay != 32767) { + --this.pickupDelay; +@@ -268,6 +271,8 @@ public class ItemEntity extends Entity implements TraceableEntity { // CraftBukkit end this.discard(EntityRemoveEvent.Cause.DESPAWN); // CraftBukkit - add Bukkit remove cause } diff --git a/patches/server/0118-Fast-resume.patch b/patches/server/0118-Fast-resume.patch index 9f4ead29..9ead8e6a 100644 --- a/patches/server/0118-Fast-resume.patch +++ b/patches/server/0118-Fast-resume.patch @@ -59,10 +59,10 @@ index 58d3d1a47e9f2423c467bb329c2d5f4b58a8b5ef..ea1ffe6b5e49ccf2b472829ed97e977b return this.removeTicketAtLevel(type, CoordinateUtils.getChunkKey(chunkPos), level, identifier); } diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index a598fcf9d67ec29668b36f70d6980831f7de2fea..d6c5b8ee987ba73643a88e4a9337a54bfa7f792f 100644 +index 0c43170b31363beca32407bddeee33ef9404d09a..3b4d1bd023904ead8b340021acd1d74b5aa53a87 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -750,6 +750,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop