23w40a+: fix entity data nbt text component reading

This commit is contained in:
Moritz Zwerger 2023-10-08 15:06:30 +02:00
parent 5f25030949
commit 731153f1a5
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 2 additions and 2 deletions

View File

@ -19,6 +19,6 @@ import de.bixilon.minosoft.protocol.protocol.buffers.play.PlayInByteBuffer
object ChatComponentEntityDataType : EntityDataType<ChatComponent> {
override fun read(buffer: PlayInByteBuffer): ChatComponent {
return buffer.readChatComponent()
return buffer.readNbtChatComponent()
}
}

View File

@ -19,6 +19,6 @@ import de.bixilon.minosoft.protocol.protocol.buffers.play.PlayInByteBuffer
object OptionalChatComponentEntityDataType : EntityDataType<ChatComponent> {
override fun read(buffer: PlayInByteBuffer): ChatComponent? {
return buffer.readOptional { buffer.readChatComponent() }
return buffer.readOptional { buffer.readNbtChatComponent() }
}
}