From b1687cbed41c7885ea07321fc7a81a296052d242 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Tue, 30 Nov 2021 18:59:09 -0800 Subject: [PATCH] Skip stripping metadata from empty stacks (#6973) --- patches/server/Hide-unnecessary-itemmeta-from-clients.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Hide-unnecessary-itemmeta-from-clients.patch b/patches/server/Hide-unnecessary-itemmeta-from-clients.patch index 236ffe3d5a..7ae9fb950d 100644 --- a/patches/server/Hide-unnecessary-itemmeta-from-clients.patch +++ b/patches/server/Hide-unnecessary-itemmeta-from-clients.patch @@ -43,7 +43,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 } + public static void stripMeta(ItemStack itemStack, @org.jetbrains.annotations.Nullable Level level) { -+ if (itemStack.getTag() != null) { ++ if (itemStack.getTag() != null && !itemStack.isEmpty()) { + CompoundTag nbt = itemStack.getTag(); + if (level != null && level.paperConfig.hideDurabilityFromClients) { + // Only show damage values for elytra's, since they show a different texture when broken.