diff options
author | Jake Potrebic <[email protected]> | 2024-04-26 19:09:42 -0700 |
---|---|---|
committer | Jake Potrebic <[email protected]> | 2024-04-26 19:09:42 -0700 |
commit | 9bac3894e1b2ee246b247b0ec0575adae605a6b1 (patch) | |
tree | 27780d3e13b86d32bb7ae375959e887064030031 /patches/server/0232-Remove-unnecessary-itemmeta-handling.patch | |
parent | 68e23db25d4e982404e36bc123a5431ca7cf1ea5 (diff) | |
download | Paper-9bac3894e1b2ee246b247b0ec0575adae605a6b1.tar.gz Paper-9bac3894e1b2ee246b247b0ec0575adae605a6b1.zip |
more fixes
Diffstat (limited to 'patches/server/0232-Remove-unnecessary-itemmeta-handling.patch')
-rw-r--r-- | patches/server/0232-Remove-unnecessary-itemmeta-handling.patch | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/patches/server/0232-Remove-unnecessary-itemmeta-handling.patch b/patches/server/0232-Remove-unnecessary-itemmeta-handling.patch index bac3c5ba15..ad3868499a 100644 --- a/patches/server/0232-Remove-unnecessary-itemmeta-handling.patch +++ b/patches/server/0232-Remove-unnecessary-itemmeta-handling.patch @@ -5,7 +5,7 @@ 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 96da768f55ad835a1a55bf359f0d7278bc232304..aca1e4ef1593c5a506a37349274cd81b1dc81ea8 100644 +index 96da768f55ad835a1a55bf359f0d7278bc232304..fb345894fec5e81d3c35af9812927220a7d56cd1 100644 --- a/src/main/java/net/minecraft/world/item/ItemStack.java +++ b/src/main/java/net/minecraft/world/item/ItemStack.java @@ -168,7 +168,7 @@ public final class ItemStack implements DataComponentHolder { @@ -17,11 +17,13 @@ index 96da768f55ad835a1a55bf359f0d7278bc232304..aca1e4ef1593c5a506a37349274cd81b CraftItemStack.setItemMeta(itemstack, CraftItemStack.getItemMeta(itemstack)); } return itemstack; -@@ -183,7 +183,7 @@ public final class ItemStack implements DataComponentHolder { +@@ -182,8 +182,8 @@ public final class ItemStack implements DataComponentHolder { + } else { registryfriendlybytebuf.writeVarInt(itemstack.getCount()); // Spigot start - filter - itemstack = itemstack.copy(); +- 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 |