mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-29 05:26:23 +01:00
Put components in entity data through component rewriter
Cursed, but possibly needed
This commit is contained in:
parent
9c84e0dbe9
commit
a77e328dfe
@ -385,6 +385,8 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter<Clientbound
|
|||||||
Types1_20_5.META_TYPES.particleType,
|
Types1_20_5.META_TYPES.particleType,
|
||||||
null
|
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) -> {
|
filter().type(EntityTypes1_20_5.LIVINGENTITY).index(10).handler((event, meta) -> {
|
||||||
final int effectColor = meta.value();
|
final int effectColor = meta.value();
|
||||||
|
Loading…
Reference in New Issue
Block a user