diff options
author | Nassim Jahnke <[email protected]> | 2024-12-03 17:58:41 +0100 |
---|---|---|
committer | Nassim Jahnke <[email protected]> | 2024-12-03 17:58:41 +0100 |
commit | c0a3d51ab35930e410fcd9752ceaff6c3f581c24 (patch) | |
tree | f53076a8b0787d2f544f73f468df94619e5eb1a5 /patches/server/0222-Remove-unnecessary-itemmeta-handling.patch | |
parent | da7138233f6392e791d790d1c3407414c855f9c2 (diff) | |
download | Paper-c0a3d51ab35930e410fcd9752ceaff6c3f581c24.tar.gz Paper-c0a3d51ab35930e410fcd9752ceaff6c3f581c24.zip |
Start update, apply API patches
Diffstat (limited to 'patches/server/0222-Remove-unnecessary-itemmeta-handling.patch')
-rw-r--r-- | patches/server/0222-Remove-unnecessary-itemmeta-handling.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/patches/server/0222-Remove-unnecessary-itemmeta-handling.patch b/patches/server/0222-Remove-unnecessary-itemmeta-handling.patch deleted file mode 100644 index d573a1e6f9..0000000000 --- a/patches/server/0222-Remove-unnecessary-itemmeta-handling.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Aikar <[email protected]> -Date: Tue, 22 Nov 2016 00:40:42 -0500 -Subject: [PATCH] Remove unnecessary itemmeta handling - - -diff --git a/src/main/java/net/minecraft/world/item/ItemStack.java b/src/main/java/net/minecraft/world/item/ItemStack.java -index 1ebaedc9617e5b79458fa119887fd72cb1f39852..957c112b4145fda5078a6f8f1689935fa0290806 100644 ---- a/src/main/java/net/minecraft/world/item/ItemStack.java -+++ b/src/main/java/net/minecraft/world/item/ItemStack.java -@@ -165,7 +165,7 @@ public final class ItemStack implements DataComponentHolder { - - // CraftBukkit start - ItemStack itemstack = new ItemStack(holder, i, datacomponentpatch); -- if (!datacomponentpatch.isEmpty()) { -+ if (false && !datacomponentpatch.isEmpty()) { // Paper - This is no longer needed with raw NBT being handled in metadata - CraftItemStack.setItemMeta(itemstack, CraftItemStack.getItemMeta(itemstack)); - } - return itemstack; -@@ -179,8 +179,8 @@ public final class ItemStack implements DataComponentHolder { - } else { - registryfriendlybytebuf.writeVarInt(itemstack.getCount()); - // Spigot start - filter -- itemstack = itemstack.copy(); -- CraftItemStack.setItemMeta(itemstack, CraftItemStack.getItemMeta(itemstack)); -+ // itemstack = itemstack.copy(); -+ // CraftItemStack.setItemMeta(itemstack, CraftItemStack.getItemMeta(itemstack)); // Paper - This is no longer with raw NBT being handled in metadata - // Spigot end - ITEM_STREAM_CODEC.encode(registryfriendlybytebuf, itemstack.getItemHolder()); // CraftBukkit - decompile error - // Paper start - adventure; conditionally render translatable components |