Fix PLAYER_INFO_UPDATE display name data type (#5)

This commit is contained in:
RK_01 2024-10-22 10:25:43 +02:00 committed by GitHub
parent 2ce11704ba
commit a0f2a8595e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -364,7 +364,7 @@ public final class EntityPacketRewriter1_21_2 extends EntityRewriter<Clientbound
wrapper.passthrough(Types.VAR_INT); // Latency
}
if (actions.get(5)) {
final Tag displayName = wrapper.passthrough(Types.TAG);
final Tag displayName = wrapper.passthrough(Types.OPTIONAL_TAG);
protocol.getComponentRewriter().processTag(wrapper.user(), displayName);
}