mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Skip stripping metadata from empty stacks (#6973)
This commit is contained in:
parent
77e275cff4
commit
b1687cbed4
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user