From a77e328dfee8ea1f7db354512f7484f120795749 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sat, 27 Apr 2024 21:39:20 +0200 Subject: [PATCH] Put components in entity data through component rewriter Cursed, but possibly needed --- .../rewriter/EntityPacketRewriter1_20_5.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/EntityPacketRewriter1_20_5.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/EntityPacketRewriter1_20_5.java index 49bd4baee..0ab660e39 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/EntityPacketRewriter1_20_5.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/EntityPacketRewriter1_20_5.java @@ -385,6 +385,8 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter protocol.getComponentRewriter().processTag(event.user(), meta.value())); + filter().metaType(Types1_20_5.META_TYPES.optionalComponentType).handler((event, meta) -> protocol.getComponentRewriter().processTag(event.user(), meta.value())); filter().type(EntityTypes1_20_5.LIVINGENTITY).index(10).handler((event, meta) -> { final int effectColor = meta.value();