Use right type for component metadata

This commit is contained in:
Nassim Jahnke 2023-03-18 13:56:53 +01:00
parent 509055307a
commit 1b268ad4ec
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -208,7 +208,7 @@ public class EntityPackets1_12 extends LegacyEntityRewriter<ClientboundPackets1_
mapEntityTypeWithData(Entity1_12Types.EntityType.ILLUSION_ILLAGER, Entity1_12Types.EntityType.EVOCATION_ILLAGER).plainName();
filter().handler((event, meta) -> {
if (meta.metaType() == MetaType1_9.Chat) {
if (meta.metaType() == MetaType1_12.Chat) {
ChatPackets1_12.COMPONENT_REWRITER.processText((JsonElement) meta.getValue());
}
});