From 6292c5a5a586e823980da9fcc6730bc06f5d35d3 Mon Sep 17 00:00:00 2001 From: EnZaXD <60033407+FlorianMichael@users.noreply.github.com> Date: Thu, 9 May 2024 20:55:31 +0200 Subject: [PATCH] Use backup tag remove method when rewriting trade list (#742) --- .../rewriter/BlockItemPacketRewriter1_20_5.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_3to1_20_5/rewriter/BlockItemPacketRewriter1_20_5.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_3to1_20_5/rewriter/BlockItemPacketRewriter1_20_5.java index 6ca8c85c..69aea505 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_3to1_20_5/rewriter/BlockItemPacketRewriter1_20_5.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_3to1_20_5/rewriter/BlockItemPacketRewriter1_20_5.java @@ -264,7 +264,7 @@ public final class BlockItemPacketRewriter1_20_5 extends BackwardsStructuredItem } final CompoundTag tag = item.tag(); - tag.remove("VV|DataComponents"); + StructuredDataConverter.removeBackupTag(tag); final CompoundTag display = tag.getCompoundTag("display"); if (display != null) {