more fixes

This commit is contained in:
Jake Potrebic
2024-04-26 19:09:42 -07:00
parent 36445ba659
commit 1bcdad0118
2 changed files with 25 additions and 1 deletions

View File

@@ -18,10 +18,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
return itemstack;
@@ -0,0 +0,0 @@ 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