geforkt von Mirrors/Paper
Dieser Commit ist enthalten in:
Ursprung
acabf7e9cf
Commit
371bd40cb0
19
patches/server/0967-Fix-item-serialization.patch
Normale Datei
19
patches/server/0967-Fix-item-serialization.patch
Normale Datei
@ -0,0 +1,19 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lixfel <agga-games@gmx.de>
|
||||||
|
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<ItemStack> ITEM_STACK = new EntityDataSerializer<ItemStack>() {
|
||||||
|
@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
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren