network: restrict chat messages in play state

Kind of security relevant, should have never been unrestricted. It only prevents that the server can not use the file:// protocol.
This commit is contained in:
Bixilon 2023-05-23 16:21:31 +02:00
parent 6fa90be8ea
commit 0269f95e72
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -101,7 +101,7 @@ class PlayInByteBuffer : InByteBuffer {
if (DebugOptions.LOG_RAW_CHAT) {
Log.log(LogMessageType.CHAT_IN, LogLevels.VERBOSE) { TextComponent(string) }
}
return ChatComponent.of(string, connection.language, null)
return ChatComponent.of(string, connection.language, null, restricted = true)
}
fun readParticleData(): ParticleData {