aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0227-Remove-unnecessary-itemmeta-handling.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0227-Remove-unnecessary-itemmeta-handling.patch')
-rw-r--r--patches/server/0227-Remove-unnecessary-itemmeta-handling.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/patches/server/0227-Remove-unnecessary-itemmeta-handling.patch b/patches/server/0227-Remove-unnecessary-itemmeta-handling.patch
new file mode 100644
index 0000000000..19a56b5c05
--- /dev/null
+++ b/patches/server/0227-Remove-unnecessary-itemmeta-handling.patch
@@ -0,0 +1,28 @@
+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/network/FriendlyByteBuf.java b/src/main/java/net/minecraft/network/FriendlyByteBuf.java
+index b9dd91927cb259789ad71b2241024c5fa2586d57..b863249ff7e13cf4939c8961601f0564c62fd661 100644
+--- a/src/main/java/net/minecraft/network/FriendlyByteBuf.java
++++ b/src/main/java/net/minecraft/network/FriendlyByteBuf.java
+@@ -649,7 +649,7 @@ public class FriendlyByteBuf extends ByteBuf {
+ 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();
+ }
+@@ -670,7 +670,7 @@ public class FriendlyByteBuf extends ByteBuf {
+
+ 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