aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0803-Hide-unnecessary-itemmeta-from-clients.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0803-Hide-unnecessary-itemmeta-from-clients.patch')
-rw-r--r--patches/server/0803-Hide-unnecessary-itemmeta-from-clients.patch12
1 files changed, 10 insertions, 2 deletions
diff --git a/patches/server/0803-Hide-unnecessary-itemmeta-from-clients.patch b/patches/server/0803-Hide-unnecessary-itemmeta-from-clients.patch
index 7290d9ffe1..400121c799 100644
--- a/patches/server/0803-Hide-unnecessary-itemmeta-from-clients.patch
+++ b/patches/server/0803-Hide-unnecessary-itemmeta-from-clients.patch
@@ -36,7 +36,7 @@ index 7464336f0c7ee59e59552afbad7bed0afcecef87..fe29bf349b987d633b185b9d44d22105
}
}
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
-index 626e53564d4130b98440982e174fd7c23b7df863..a1c43c61ab3a618f864bfefb9e481386d82621e8 100644
+index 626e53564d4130b98440982e174fd7c23b7df863..f21f69977ff92ac967aac2e72b679f17e2c42501 100644
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
@@ -3079,7 +3079,7 @@ public abstract class LivingEntity extends Entity {
@@ -48,7 +48,7 @@ index 626e53564d4130b98440982e174fd7c23b7df863..a1c43c61ab3a618f864bfefb9e481386
// Paper end
switch (enumitemslot.getType()) {
case HAND:
-@@ -3093,6 +3093,51 @@ public abstract class LivingEntity extends Entity {
+@@ -3093,6 +3093,59 @@ public abstract class LivingEntity extends Entity {
((ServerLevel) this.level).getChunkSource().broadcast(this, new ClientboundSetEquipmentPacket(this.getId(), list));
}
@@ -91,6 +91,14 @@ index 626e53564d4130b98440982e174fd7c23b7df863..a1c43c61ab3a618f864bfefb9e481386
+ 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;