13
0
geforkt von Mirrors/Paper

Skip stripping metadata from empty stacks (#6973)

Dieser Commit ist enthalten in:
Jake Potrebic 2021-11-30 18:59:09 -08:00
Ursprung 77e275cff4
Commit b1687cbed4

Datei anzeigen

@ -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.