From ab393b0ed1ef9e17ffb97e5de31f4db7a12395ea Mon Sep 17 00:00:00 2001 From: yueh Date: Mon, 31 Aug 2020 23:09:14 +0200 Subject: [PATCH] Serialize the complete NBT data to avoid mismatches (#4665) This might increase the network traffic a bit, but the amount of mods actually using the share tag seems to be very limited. For now it is worth the risk as it solves the problem. In case we run into actual issues, there might still be other solutions, which will be way more complex and can potentially introduce additional problems. (cherry picked from commit e90dd2f9c6f1cd8b1ce271368f79f1f37df5bdce) --- src/main/java/appeng/util/item/AEItemStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/appeng/util/item/AEItemStack.java b/src/main/java/appeng/util/item/AEItemStack.java index e427cac7b..2ac25585f 100644 --- a/src/main/java/appeng/util/item/AEItemStack.java +++ b/src/main/java/appeng/util/item/AEItemStack.java @@ -125,7 +125,7 @@ public final class AEItemStack extends AEStack implements IAEItemS buffer.writeBoolean(this.isCraftable()); buffer.writeVarLong(this.getStackSize()); buffer.writeVarLong(this.getCountRequestable()); - buffer.writeItemStack(getDefinition()); + buffer.writeItemStack(getDefinition(), false); } @Override