From 71ab15b3318f098a12f41249b4d310ef9e930a00 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 23 Apr 2024 13:39:15 +0200 Subject: [PATCH] Serialize to 1.20.3 components in conversion Aside from hover events, only reading of components changed and we need the 1.20.3 hover input. Hover events are already handled by us. --- .../rewriter/BlockItemPacketRewriter1_20_5.java | 4 +++- .../java/com/viaversion/viaversion/util/ComponentUtil.java | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/BlockItemPacketRewriter1_20_5.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/BlockItemPacketRewriter1_20_5.java index 8231071f9..28d48b76e 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/BlockItemPacketRewriter1_20_5.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/BlockItemPacketRewriter1_20_5.java @@ -99,6 +99,7 @@ import com.viaversion.viaversion.rewriter.ItemRewriter; import com.viaversion.viaversion.util.ComponentUtil; import com.viaversion.viaversion.util.Either; import com.viaversion.viaversion.util.Key; +import com.viaversion.viaversion.util.SerializerVersion; import com.viaversion.viaversion.util.UUIDUtil; import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; @@ -1111,7 +1112,8 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter");