Don't process component twice in 1.19.4->1.19.3 text display handler (#878)

This commit is contained in:
EnZaXD 2024-08-30 21:05:03 +02:00 committed by GitHub
parent 830ccce303
commit ffb98523e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,9 +167,6 @@ public final class EntityPacketRewriter1_19_4 extends EntityRewriter<Clientbound
event.setIndex(2);
data.setDataType(Types1_19_3.ENTITY_DATA_TYPES.optionalComponentType);
event.createExtraData(new EntityData(3, Types1_19_3.ENTITY_DATA_TYPES.booleanType, true)); // Show custom name
final JsonElement element = data.value();
protocol.getComponentRewriter().processText(event.user(), element);
}));
filter().type(EntityTypes1_19_4.DISPLAY).handler((event, data) -> {
// TODO Maybe spawn an extra entity to ride the armor stand for blocks and items