2022-06-09 23:27:06 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Tue, 22 Nov 2016 00:40:42 -0500
|
|
|
|
Subject: [PATCH] Remove unnecessary itemmeta handling
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/network/FriendlyByteBuf.java b/src/main/java/net/minecraft/network/FriendlyByteBuf.java
|
2023-12-12 05:24:48 +01:00
|
|
|
index 3374ea2fa61e1683c4c4d7ea3ef9b8a20cd09f62..23d78a3193c30dd99d42182628c0e9e4527fc143 100644
|
2022-06-09 23:27:06 +02:00
|
|
|
--- a/src/main/java/net/minecraft/network/FriendlyByteBuf.java
|
|
|
|
+++ b/src/main/java/net/minecraft/network/FriendlyByteBuf.java
|
2023-12-12 05:24:48 +01:00
|
|
|
@@ -642,7 +642,7 @@ public class FriendlyByteBuf extends ByteBuf {
|
2022-06-09 23:27:06 +02:00
|
|
|
if (item.canBeDepleted() || item.shouldOverrideMultiplayerNbt()) {
|
|
|
|
// Spigot start - filter
|
|
|
|
stack = stack.copy();
|
|
|
|
- CraftItemStack.setItemMeta(stack, CraftItemStack.getItemMeta(stack));
|
|
|
|
+ // CraftItemStack.setItemMeta(stack, CraftItemStack.getItemMeta(stack)); // Paper - This is no longer with raw NBT being handled in metadata
|
|
|
|
// Spigot end
|
|
|
|
nbttagcompound = stack.getTag();
|
|
|
|
}
|
2023-12-12 05:24:48 +01:00
|
|
|
@@ -663,7 +663,7 @@ public class FriendlyByteBuf extends ByteBuf {
|
2022-06-09 23:27:06 +02:00
|
|
|
|
|
|
|
itemstack.setTag(this.readNbt());
|
|
|
|
// CraftBukkit start
|
|
|
|
- if (itemstack.getTag() != null) {
|
|
|
|
+ if (false && itemstack.getTag() != null) { // Paper - This is no longer needed with raw NBT being handled in metadata
|
|
|
|
CraftItemStack.setItemMeta(itemstack, CraftItemStack.getItemMeta(itemstack));
|
|
|
|
}
|
|
|
|
// CraftBukkit end
|