Put components in entity data through component rewriter

Cursed, but possibly needed
This commit is contained in:
Nassim Jahnke 2024-04-27 21:39:20 +02:00
parent 9c84e0dbe9
commit a77e328dfe
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -385,6 +385,8 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter<Clientbound
Types1_20_5.META_TYPES.particleType,
null
);
filter().metaType(Types1_20_5.META_TYPES.componentType).handler((event, meta) -> 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();