mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 10:55:01 -04:00
23w40a+: fix entity data nbt text component reading
This commit is contained in:
parent
5f25030949
commit
731153f1a5
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -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() }
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user