From 26c1ff68acc2f2c7b20fa8c370933261a0984db4 Mon Sep 17 00:00:00 2001 From: Samsuik Date: Mon, 2 Sep 2024 23:14:51 +0100 Subject: [PATCH] Updated Upstream (Paper) Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@9e7f6c3 Fixup and deprecate player profiles in ping event (#10880) PaperMC/Paper@5914f60 Update AbstractArrow item method implementations for 1.20.6 (#10885) PaperMC/Paper@3889ffb Fix Player#sendBlockUpdate (#10855) PaperMC/Paper@af7f0c4 Fix ItemMeta#removeEnchantments (#10886) PaperMC/Paper@43484eb Add back RecipeIterator fixes patch (#10887) PaperMC/Paper@fe7043e Configurable damage tick when blocking with shield (#10877) PaperMC/Paper@122c9d3 Fix NPE in V3808 PaperMC/Paper@e41d44f Fix `hasFiredAsync` parameter when `AsyncPlayerSendCommandsEvent` is called (#10896) PaperMC/Paper@20f5165 Backport `LivingEntity#canUseEquipmentSlot` API (#11013) PaperMC/Paper@6e71f41 Updated Upstream (CraftBukkit/Spigot) --- gradle.properties | 2 +- .../0005-Visibility-API-and-Command.patch | 8 +++--- .../0078-Entity-tracking-range-modifier.patch | 4 +-- ...tiles-to-load-chunks-for-collisions.patch} | 2 +- ...lock-type-in-SculkSensorBlock-canAc.patch} | 0 ...-Improve-standard-messenger-logging.patch} | 4 +-- ...-file-not-directory-when-checking-fo.patch | 26 ------------------- 7 files changed, 10 insertions(+), 36 deletions(-) rename patches/server/{0084-Allow-projectiles-to-load-chunks-for-collisions.patch => 0081-Allow-projectiles-to-load-chunks-for-collisions.patch} (98%) rename patches/server/{0081-PAPER-Check-for-block-type-in-SculkSensorBlock-canAc.patch => 0082-PAPER-Check-for-block-type-in-SculkSensorBlock-canAc.patch} (100%) rename patches/server/{0082-PAPER-Improve-standard-messenger-logging.patch => 0083-PAPER-Improve-standard-messenger-logging.patch} (88%) delete mode 100644 patches/server/0083-PAPER-Use-player-file-not-directory-when-checking-fo.patch diff --git a/gradle.properties b/gradle.properties index d2c275b..621140c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ group=me.samsuik.sakura version=1.20.6-R0.1-SNAPSHOT mcVersion=1.20.6 -paperRef=79e2cb620ef03539390d97940824b38b707918f5 +paperRef=6e71f415369e35558450f015cfcc2d2db1c0e064 org.gradle.jvmargs=-Xmx2G diff --git a/patches/server/0005-Visibility-API-and-Command.patch b/patches/server/0005-Visibility-API-and-Command.patch index 22ddf63..1a97647 100644 --- a/patches/server/0005-Visibility-API-and-Command.patch +++ b/patches/server/0005-Visibility-API-and-Command.patch @@ -255,7 +255,7 @@ index 1a37654aff9a9c86c9f7af10a1cf721371f0c5ec..82644b34a77dc5e5af38260b7b07b3ec public ClientboundSectionBlocksUpdatePacket(SectionPos sectionPos, ShortSet positions, LevelChunkSection section) { this.sectionPos = sectionPos; diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 9677324fc698789e9cd880705985d6112c6bd9bb..606ae62f597761296412e14750758fa185fc3c48 100644 +index aae93a7f1b7c7744e4cd354b6d070d4f2d4d8843..dd5994f65ef31a41d0f4f06f4990078d4c20a450 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -1799,6 +1799,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop -Date: Sun, 18 Aug 2024 15:32:25 -0700 -Subject: [PATCH] PAPER Use player file, not directory, when checking for - offline player data - -When trying to fall back to offline player data in onlide mode, -we need to use the player file. This fixes a mistake during -update where 'file' was used, but the new code uses 'file1' -for the player file. - -Backported https://github.com/PaperMC/Paper/commit/be1078f5f2e28c1a1de99e9c96e4003c3f96f6e8 - -diff --git a/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java b/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java -index 8ab7ca373a885fbe658013c9c6a2e38d32d77bb2..b148cf247acdd36f856d0495cde4cc5ad32b5a2f 100644 ---- a/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java -+++ b/src/main/java/net/minecraft/world/level/storage/PlayerDataStorage.java -@@ -78,7 +78,7 @@ public class PlayerDataStorage { - File file1 = new File(file, s1 + s); - // Spigot Start - boolean usingWrongFile = false; -- if ( org.bukkit.Bukkit.getOnlineMode() && !file.exists() ) // Paper - Check online mode first -+ if ( org.bukkit.Bukkit.getOnlineMode() && !file1.exists() ) // Paper - Check online mode first - { - file1 = new File( file, java.util.UUID.nameUUIDFromBytes( ( "OfflinePlayer:" + name ).getBytes( java.nio.charset.StandardCharsets.UTF_8 ) ).toString() + s ); - if ( file1.exists() )