geforkt von Mirrors/Paper
Skip stripping metadata from empty stacks (#6973)
Dieser Commit ist enthalten in:
Ursprung
77e275cff4
Commit
b1687cbed4
@ -43,7 +43,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
}
|
}
|
||||||
|
|
||||||
+ public static void stripMeta(ItemStack itemStack, @org.jetbrains.annotations.Nullable Level level) {
|
+ 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();
|
+ CompoundTag nbt = itemStack.getTag();
|
||||||
+ if (level != null && level.paperConfig.hideDurabilityFromClients) {
|
+ if (level != null && level.paperConfig.hideDurabilityFromClients) {
|
||||||
+ // Only show damage values for elytra's, since they show a different texture when broken.
|
+ // Only show damage values for elytra's, since they show a different texture when broken.
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren