From 371bd40cb0cde0e2f632ca789bb70114ecaba6ba Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 27 Aug 2023 18:03:22 +0200 Subject: [PATCH] Fix item serialization --- .../server/0967-Fix-item-serialization.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 patches/server/0967-Fix-item-serialization.patch diff --git a/patches/server/0967-Fix-item-serialization.patch b/patches/server/0967-Fix-item-serialization.patch new file mode 100644 index 0000000000..254f54de68 --- /dev/null +++ b/patches/server/0967-Fix-item-serialization.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Lixfel +Date: Sun, 27 Aug 2023 18:02:50 +0200 +Subject: [PATCH] Fix item serialization + + +diff --git a/src/main/java/net/minecraft/network/syncher/EntityDataSerializers.java b/src/main/java/net/minecraft/network/syncher/EntityDataSerializers.java +index c5e82ec453a431486a9aed1d6c2637e8b335d0d6..b30e6e0967d18e710cec7bacca549d487e7f8776 100644 +--- a/src/main/java/net/minecraft/network/syncher/EntityDataSerializers.java ++++ b/src/main/java/net/minecraft/network/syncher/EntityDataSerializers.java +@@ -39,7 +39,7 @@ public class EntityDataSerializers { + public static final EntityDataSerializer ITEM_STACK = new EntityDataSerializer() { + @Override + public void write(FriendlyByteBuf buf, ItemStack value) { +- buf.writeItem(net.minecraft.world.entity.LivingEntity.sanitizeItemStack(value, false)); // Paper - prevent oversized data ++ buf.writeItem(net.minecraft.world.entity.LivingEntity.sanitizeItemStack(value, true)); // Paper - prevent oversized data + } + + @Override