1.19: fix TabListS2CP public key reading

This commit is contained in:
Bixilon 2022-06-17 21:36:35 +02:00
parent 1677e9152a
commit 0306868cc7
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -52,7 +52,7 @@ class TabListS2CP(buffer: PlayInByteBuffer) : PlayS2CPacket {
} else { } else {
null null
} }
val publicKey = if (buffer.versionId >= ProtocolVersions.V_22W18A) buffer.readPlayerPublicKey() else null val publicKey = if (buffer.versionId >= ProtocolVersions.V_22W18A) buffer.readOptional { buffer.readPlayerPublicKey() } else null
data = TabListItemData( data = TabListItemData(
name = name, name = name,
properties = properties, properties = properties,