From 9063d40896869f76bc61645ca378dc402a1fe82e Mon Sep 17 00:00:00 2001 From: foss-mc <69294560+foss-mc@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:25:22 +1300 Subject: [PATCH] update paper --- gradle.properties | 2 +- ...anges-commit-8abd47bc9140fbfa2f94be.patch} | 8 +++---- patches/api/0008-rebrand.patch | 4 ++-- ...-Changes-commit-8abd47bc9140fbfa2f9.patch} | 22 +++++++++---------- ...anges-commit-49db8494f127327dd8bc41d.patch | 12 +++++----- ...er-Changes-commit-e15007e4385c5852bf.patch | 4 ++-- ...aps-the-predicate-order-of-collision.patch | 6 ++--- 7 files changed, 29 insertions(+), 29 deletions(-) rename patches/api/{0001-pufferfish-API-Changes-commit-a9e9d9940376e432d72cde.patch => 0001-pufferfish-API-Changes-commit-8abd47bc9140fbfa2f94be.patch} (98%) rename patches/server/{0001-pufferfish-Server-Changes-commit-a9e9d9940376e432d72.patch => 0001-pufferfish-Server-Changes-commit-8abd47bc9140fbfa2f9.patch} (99%) diff --git a/gradle.properties b/gradle.properties index 2a75443a..10848bf8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ group = patina.patina version = 1.21-R0.1-SNAPSHOT mcVersion = 1.21 -paperRef = c5a10665b8b80af650500b9263036f778f06d500 +paperRef = 4430e96e1b82f3e8244a5c979afb7a69f38222aa org.gradle.parallel = true org.gradle.caching = true diff --git a/patches/api/0001-pufferfish-API-Changes-commit-a9e9d9940376e432d72cde.patch b/patches/api/0001-pufferfish-API-Changes-commit-8abd47bc9140fbfa2f94be.patch similarity index 98% rename from patches/api/0001-pufferfish-API-Changes-commit-a9e9d9940376e432d72cde.patch rename to patches/api/0001-pufferfish-API-Changes-commit-8abd47bc9140fbfa2f94be.patch index e4be2ebd..c6b4a193 100644 --- a/patches/api/0001-pufferfish-API-Changes-commit-a9e9d9940376e432d72cde.patch +++ b/patches/api/0001-pufferfish-API-Changes-commit-8abd47bc9140fbfa2f94be.patch @@ -1,8 +1,8 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: foss-mc <69294560+foss-mc@users.noreply.github.com> -Date: Thu, 19 Sep 2024 10:22:08 +1200 +Date: Thu, 17 Oct 2024 10:51:56 +1300 Subject: [PATCH] pufferfish API Changes commit - a9e9d9940376e432d72cdebbdffcf40eb48bd713 + 8abd47bc9140fbfa2f94bef0c18995ccbcabeb35 Add Sentry @@ -22,7 +22,7 @@ This patch does not add any API that should be used by plugins. Any classes and methods added by this patch should NOT be used in plugins. diff --git a/build.gradle.kts b/build.gradle.kts -index 540fe7e2c110e79c3742f229b3ed8c54b101d260..07945418e95cbe07c45bfa815d828fa311c7f033 100644 +index ab84a1405acc1f0d5f267892243b82b8dab03e21..4114aa99614ae588b1cf465ea7900308476a7568 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,6 +52,7 @@ dependencies { @@ -33,7 +33,7 @@ index 540fe7e2c110e79c3742f229b3ed8c54b101d260..07945418e95cbe07c45bfa815d828fa3 implementation("org.ow2.asm:asm:9.7") implementation("org.ow2.asm:asm-commons:9.7") -@@ -130,6 +131,13 @@ val generateApiVersioningFile by tasks.registering { +@@ -131,6 +132,13 @@ val generateApiVersioningFile by tasks.registering { } } diff --git a/patches/api/0008-rebrand.patch b/patches/api/0008-rebrand.patch index f8dc918f..ecb3cb45 100644 --- a/patches/api/0008-rebrand.patch +++ b/patches/api/0008-rebrand.patch @@ -5,10 +5,10 @@ Subject: [PATCH] rebrand diff --git a/src/main/java/io/papermc/paper/ServerBuildInfo.java b/src/main/java/io/papermc/paper/ServerBuildInfo.java -index 9df9d09aa477d4cd3c496ba0933c816df1ef0964..6c71fca2954d3ef8aafa498cd3c25d0622bb8c15 100644 +index 652ff54e7c50412503725d628bfe72ed03059790..e1421e6135075ba8f8f4694f2666c13298f75f58 100644 --- a/src/main/java/io/papermc/paper/ServerBuildInfo.java +++ b/src/main/java/io/papermc/paper/ServerBuildInfo.java -@@ -18,6 +18,9 @@ public interface ServerBuildInfo { +@@ -19,6 +19,9 @@ public interface ServerBuildInfo { */ Key BRAND_PAPER_ID = Key.key("papermc", "paper"); diff --git a/patches/server/0001-pufferfish-Server-Changes-commit-a9e9d9940376e432d72.patch b/patches/server/0001-pufferfish-Server-Changes-commit-8abd47bc9140fbfa2f9.patch similarity index 99% rename from patches/server/0001-pufferfish-Server-Changes-commit-a9e9d9940376e432d72.patch rename to patches/server/0001-pufferfish-Server-Changes-commit-8abd47bc9140fbfa2f9.patch index 87f94a71..0c65ab2e 100644 --- a/patches/server/0001-pufferfish-Server-Changes-commit-a9e9d9940376e432d72.patch +++ b/patches/server/0001-pufferfish-Server-Changes-commit-8abd47bc9140fbfa2f9.patch @@ -1,8 +1,8 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: foss-mc <69294560+foss-mc@users.noreply.github.com> -Date: Thu, 19 Sep 2024 10:22:07 +1200 +Date: Thu, 17 Oct 2024 10:51:56 +1300 Subject: [PATCH] pufferfish Server Changes commit - a9e9d9940376e432d72cdebbdffcf40eb48bd713 + 8abd47bc9140fbfa2f94bef0c18995ccbcabeb35 Pufferfish Utils @@ -2140,7 +2140,7 @@ index 8ea2f24695f5dad55e21f238b69442513e7a90c6..5a2f7f7cf79dcbb996574e18cad86ebb this.wasOnGround = this.entity.onGround(); this.teleportDelay = 0; diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java -index c96f3dcd365bc140b1f4680ef6bd770c80f8eda1..67d4b15143358c8947a7102a325dad66967e73a6 100644 +index f9abf63e12ea930275121b470e4e4906cff0fc12..2a8ffcdd262ea73844500846c6401cdda7153d61 100644 --- a/src/main/java/net/minecraft/server/level/ServerLevel.java +++ b/src/main/java/net/minecraft/server/level/ServerLevel.java @@ -715,6 +715,7 @@ public class ServerLevel extends Level implements WorldGenLevel, ca.spottedleaf. @@ -2186,7 +2186,7 @@ index c96f3dcd365bc140b1f4680ef6bd770c80f8eda1..67d4b15143358c8947a7102a325dad66 if (this.isRainingAt(blockposition)) { diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java -index fcccf989c25f0a259b160c4ff7873f7009e64d14..9422d8bd512555f54410391d55c4072474c1ae4e 100644 +index befeaac4786760f6847a5945da2296a3e68dbb17..6c28390e33c07d4c65493019375b669ccfa5ae2d 100644 --- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java +++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java @@ -1157,6 +1157,7 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl @@ -2198,7 +2198,7 @@ index fcccf989c25f0a259b160c4ff7873f7009e64d14..9422d8bd512555f54410391d55c40724 final io.papermc.paper.configuration.type.number.IntOr.Disabled pageMax = io.papermc.paper.configuration.GlobalConfiguration.get().itemValidation.bookSize.pageMax; if (!this.cserver.isPrimaryThread() && pageMax.enabled()) { diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java -index 9f68c0fda7f5526eb97619f1a35ed3b78d1b3751..aa4a4691d1a17a72df26d3132cb87b3183bb7052 100644 +index 4b54d0ea31062972e68ee8fafe3cfaf68f65a5cd..8492421ed2186c0eab517a67f3140b9988f65250 100644 --- a/src/main/java/net/minecraft/world/entity/Entity.java +++ b/src/main/java/net/minecraft/world/entity/Entity.java @@ -429,6 +429,9 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess @@ -2224,7 +2224,7 @@ index 9f68c0fda7f5526eb97619f1a35ed3b78d1b3751..aa4a4691d1a17a72df26d3132cb87b31 this.baseTick(); } -@@ -4448,16 +4457,18 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess +@@ -4452,16 +4461,18 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess } public boolean updateFluidHeightAndDoFluidPushing(TagKey tag, double speed) { @@ -2250,7 +2250,7 @@ index 9f68c0fda7f5526eb97619f1a35ed3b78d1b3751..aa4a4691d1a17a72df26d3132cb87b31 double d1 = 0.0D; boolean flag = this.isPushedByFluid(); boolean flag1 = false; -@@ -4465,14 +4476,61 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess +@@ -4469,14 +4480,61 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess int k1 = 0; BlockPos.MutableBlockPos blockposition_mutableblockposition = new BlockPos.MutableBlockPos(); @@ -2318,7 +2318,7 @@ index 9f68c0fda7f5526eb97619f1a35ed3b78d1b3751..aa4a4691d1a17a72df26d3132cb87b31 if (d2 >= axisalignedbb.minY) { flag1 = true; -@@ -4494,9 +4552,12 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess +@@ -4498,9 +4556,12 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess // CraftBukkit end } } @@ -2345,7 +2345,7 @@ index cb61462d4691a055a4b25f7b953609d8a154fdfe..f9440014ab2fe753c16b9383f5fffbb8 private String descriptionId; @Nullable diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java -index 30f4f1254fc295442d72d50479e8af635f2fe983..731f5111127f048f8afed8ed970cd6cfc492fb89 100644 +index 2aa6374cd4a96efd85899be8cd3172a8257bfe6b..5132e108df37ca97ba94b8b72c0ef292cbb2ec94 100644 --- a/src/main/java/net/minecraft/world/entity/LivingEntity.java +++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java @@ -157,7 +157,6 @@ import org.bukkit.event.entity.EntityTeleportEvent; @@ -2927,7 +2927,7 @@ index 213ee4aa988dd4c2a5a7be99b1d13f67338e5209..8e46753af60aa9fd8e4b4c0f955f7a55 if (input.ingredientCount() != this.ingredients.size()) { return false; diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java -index e2a0487089eb5a7bdc1433e4c75f69d8e9f9d5f9..d3cc65612c44f42ecae2e09b942438a03bc244bd 100644 +index 507671476c3d2d92a2fdb05be24443af27d26dcf..2479b47186202de40cdb4ae773c696a4adee9bad 100644 --- a/src/main/java/net/minecraft/world/level/Level.java +++ b/src/main/java/net/minecraft/world/level/Level.java @@ -1418,16 +1418,16 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl @@ -2950,7 +2950,7 @@ index e2a0487089eb5a7bdc1433e4c75f69d8e9f9d5f9..d3cc65612c44f42ecae2e09b942438a0 } // Paper start - Option to prevent armor stands from doing entity lookups @Override -@@ -1944,6 +1944,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl +@@ -1961,6 +1961,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl } public ProfilerFiller getProfiler() { diff --git a/patches/server/0002-purpur-Server-Changes-commit-49db8494f127327dd8bc41d.patch b/patches/server/0002-purpur-Server-Changes-commit-49db8494f127327dd8bc41d.patch index 4493cecf..8c14fb9b 100644 --- a/patches/server/0002-purpur-Server-Changes-commit-49db8494f127327dd8bc41d.patch +++ b/patches/server/0002-purpur-Server-Changes-commit-49db8494f127327dd8bc41d.patch @@ -94,10 +94,10 @@ index 2d344df35d47b4b1ecddf32ccaa4dae41e5f58cb..2f7ed5b38e8930b3a615f160cdf4c5b0 boolean flag1 = this.source.acceptsSuccess() && !this.silent; boolean flag2 = broadcastToOps && this.source.shouldInformAdmins() && !this.silent; diff --git a/src/main/java/net/minecraft/commands/Commands.java b/src/main/java/net/minecraft/commands/Commands.java -index 1d1e76de60e40224f5cb81893f9ee50fe987badb..7e291ffff86bdcdb8a0a15c211c3f84d6ae18e38 100644 +index 5af48400f87500166dd889c57a8df0aadb08d43d..058d13f681d7aa616846b4b6d24c668da703eb34 100644 --- a/src/main/java/net/minecraft/commands/Commands.java +++ b/src/main/java/net/minecraft/commands/Commands.java -@@ -515,6 +515,7 @@ public class Commands { +@@ -509,6 +509,7 @@ public class Commands { private void runSync(ServerPlayer player, Collection bukkit, RootCommandNode rootcommandnode) { // Paper end - Perf: Async command map building new com.destroystokyo.paper.event.brigadier.AsyncPlayerSendCommandsEvent(player.getBukkitEntity(), (RootCommandNode) rootcommandnode, true).callEvent(); // Paper - Brigadier API @@ -105,7 +105,7 @@ index 1d1e76de60e40224f5cb81893f9ee50fe987badb..7e291ffff86bdcdb8a0a15c211c3f84d PlayerCommandSendEvent event = new PlayerCommandSendEvent(player.getBukkitEntity(), new LinkedHashSet<>(bukkit)); event.getPlayer().getServer().getPluginManager().callEvent(event); -@@ -525,6 +526,7 @@ public class Commands { +@@ -519,6 +520,7 @@ public class Commands { } } // CraftBukkit end @@ -143,7 +143,7 @@ index e63721261258dba60b1eef2eee011e0aa18b0fd2..01884bca3dbd397fd59eddd80aab3517 this.delayedTasksMaxNextTickTimeNanos = nextTickTimeNanos; } diff --git a/src/main/java/net/minecraft/server/PlayerAdvancements.java b/src/main/java/net/minecraft/server/PlayerAdvancements.java -index 9fabf9322acd663c4452b562494e74aa42eb19da..b286b157bba78021efa18f01bc91b067b0bd5874 100644 +index 862a4bf003b7f810fb57dbcd150a1417c902b633..c3cc63c7bbfab346cfd25b69fbb4872bf66b142f 100644 --- a/src/main/java/net/minecraft/server/PlayerAdvancements.java +++ b/src/main/java/net/minecraft/server/PlayerAdvancements.java @@ -199,6 +199,7 @@ public class PlayerAdvancements { @@ -262,7 +262,7 @@ index 532f09089b8d6798999cf3f83e852df7479e450e..43c63d203859eaa0999937e2f9254c22 // Paper end } diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java -index c13922d2fb1c15f895b14d4cb6d5379b59ea1ef8..8025435544bd739e1a647b9ce765b9a6b26d15a2 100644 +index 5e2c4969e77c669acbb4a13c07033cb267c3d586..8e99f48a0b24b587b26784499ea1f135c148bc73 100644 --- a/src/main/java/net/minecraft/server/players/PlayerList.java +++ b/src/main/java/net/minecraft/server/players/PlayerList.java @@ -1129,6 +1129,7 @@ public abstract class PlayerList { @@ -286,7 +286,7 @@ index 8a2584deccbf19de8a18fcfcb9c65318b60afe57..6146ca9fef0e33601c132d4867c9399e } else { handler.accept((RecipeHolder) optional.get()); diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java -index d3cc65612c44f42ecae2e09b942438a03bc244bd..116cfd126df3ed5c6643e70912c0d6a63f4a6eb2 100644 +index 2479b47186202de40cdb4ae773c696a4adee9bad..97f83c9737726be0c3b6dc847b56970e81cc6b6f 100644 --- a/src/main/java/net/minecraft/world/level/Level.java +++ b/src/main/java/net/minecraft/world/level/Level.java @@ -173,6 +173,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl diff --git a/patches/server/0003-EmpireCraft-Server-Changes-commit-e15007e4385c5852bf.patch b/patches/server/0003-EmpireCraft-Server-Changes-commit-e15007e4385c5852bf.patch index cb9f9083..d66bb357 100644 --- a/patches/server/0003-EmpireCraft-Server-Changes-commit-e15007e4385c5852bf.patch +++ b/patches/server/0003-EmpireCraft-Server-Changes-commit-e15007e4385c5852bf.patch @@ -59,10 +59,10 @@ index dc02a3d84b397f634f77f4df9c06e245cc4dcb75..4f946102ff69861784cccc1be0b01bd5 LootTable loottable = this.level.getServer().reloadableRegistries().getLootTable(this.lootTable); diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java -index 90d4834f97d3ba996d46493246b1947511553424..03dab2d3278b122065d11f6592afe088986be2cb 100644 +index 33e4818ba5a90d78d69baad9f6b1be1b1382e9f3..14e35c0f782a92c227bfcc9fc3d26795d50ab1c3 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java -@@ -414,7 +414,7 @@ public class CraftWorld extends CraftRegionAccessor implements World { +@@ -455,7 +455,7 @@ public class CraftWorld extends CraftRegionAccessor implements World { @Override public boolean unloadChunk(int x, int z) { diff --git a/patches/server/0005-Akarin-Swaps-the-predicate-order-of-collision.patch b/patches/server/0005-Akarin-Swaps-the-predicate-order-of-collision.patch index 8a613298..787b4669 100644 --- a/patches/server/0005-Akarin-Swaps-the-predicate-order-of-collision.patch +++ b/patches/server/0005-Akarin-Swaps-the-predicate-order-of-collision.patch @@ -5,10 +5,10 @@ Subject: [PATCH] (Akarin) Swaps the predicate order of collision diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java -index 3f7812c55dae82433336d6e091aa83434615fa04..5e103140fe8cea538880c6a29288dd83793c2fae 100644 +index 8492421ed2186c0eab517a67f3140b9988f65250..2d579d0acef974ee1a13bcecb6e603df56c6a2f6 100644 --- a/src/main/java/net/minecraft/world/entity/Entity.java +++ b/src/main/java/net/minecraft/world/entity/Entity.java -@@ -2185,8 +2185,7 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess +@@ -2187,8 +2187,7 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess public void playerTouch(Player player) {} public void push(Entity entity) { @@ -18,7 +18,7 @@ index 3f7812c55dae82433336d6e091aa83434615fa04..5e103140fe8cea538880c6a29288dd83 if (this.level.paperConfig().collisions.onlyPlayersCollide && !(entity instanceof ServerPlayer || this instanceof ServerPlayer)) return; // Paper - Collision option for requiring a player participant double d0 = entity.getX() - this.getX(); double d1 = entity.getZ() - this.getZ(); -@@ -2214,8 +2213,6 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess +@@ -2216,8 +2215,6 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess entity.push(d0, 0.0D, d1); } }