mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-19 04:15:14 -04:00
mark CommandsS2CP as thread safe
This commit is contained in:
parent
99e26ec699
commit
e9743b0318
@ -26,7 +26,7 @@ import de.bixilon.minosoft.util.logging.Log
|
|||||||
import de.bixilon.minosoft.util.logging.LogLevels
|
import de.bixilon.minosoft.util.logging.LogLevels
|
||||||
import de.bixilon.minosoft.util.logging.LogMessageType
|
import de.bixilon.minosoft.util.logging.LogMessageType
|
||||||
|
|
||||||
@LoadPacket
|
@LoadPacket(threadSafe = true)
|
||||||
class CommandsS2CP(buffer: PlayInByteBuffer) : PlayS2CPacket {
|
class CommandsS2CP(buffer: PlayInByteBuffer) : PlayS2CPacket {
|
||||||
val nodes = buffer.readArray { buffer.readCommandNode() }.build()
|
val nodes = buffer.readArray { buffer.readCommandNode() }.build()
|
||||||
val rootNode = nodes[buffer.readVarInt()].nullCast<RootNode>()
|
val rootNode = nodes[buffer.readVarInt()].nullCast<RootNode>()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user