mark CommandsS2CP as thread safe

This commit is contained in:
Bixilon 2022-06-18 13:15:21 +02:00
parent 99e26ec699
commit e9743b0318
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -26,7 +26,7 @@ import de.bixilon.minosoft.util.logging.Log
import de.bixilon.minosoft.util.logging.LogLevels
import de.bixilon.minosoft.util.logging.LogMessageType
@LoadPacket
@LoadPacket(threadSafe = true)
class CommandsS2CP(buffer: PlayInByteBuffer) : PlayS2CPacket {
val nodes = buffer.readArray { buffer.readCommandNode() }.build()
val rootNode = nodes[buffer.readVarInt()].nullCast<RootNode>()