Don't send itemmeta for books with the hide option enabled (#7734)

This commit is contained in:
Noah van der Aa
2022-04-18 12:23:37 +02:00
parent 915e452d12
commit 5ea6685328
2 changed files with 8 additions and 7 deletions

View File

@@ -91,6 +91,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ tag.put("Enchantments", enchantments);
+ }
+ tag.remove("AttributeModifiers");
+
+ // Books
+ tag.remove("author");
+ tag.remove("filtered_title");
+ tag.remove("pages");
+ tag.remove("filtered_pages");
+ tag.remove("title");
+ tag.remove("generation");
+ }
+ }
+ return copy;