Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Commit fdd73db

Browse files
committed
refactor(sync): replace objectListOf with mutableObjectListOf for unknownSyncValues initialization
1 parent 5c26cfa commit fdd73db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

surf-cloud-core/surf-cloud-core-common/src/main/kotlin/dev/slne/surf/cloud/core/common/netty/network/protocol/synchronizing/ClientboundBatchSyncValuePacket.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import dev.slne.surf.cloud.api.common.netty.network.protocol.PacketFlow
66
import dev.slne.surf.cloud.api.common.netty.packet.NettyPacket
77
import dev.slne.surf.cloud.api.common.netty.packet.packetCodec
88
import dev.slne.surf.cloud.api.common.netty.protocol.buffer.SurfByteBuf
9-
import dev.slne.surf.cloud.api.common.util.objectListOf
109
import dev.slne.surf.cloud.core.common.sync.BasicSyncValue
1110
import dev.slne.surf.cloud.core.common.sync.CommonSyncRegistryImpl
1211
import dev.slne.surf.surfapi.core.api.util.logger
12+
import dev.slne.surf.surfapi.core.api.util.mutableObjectListOf
1313

1414
@SurfNettyPacket(
1515
"cloud:batch_sync_value",
@@ -30,7 +30,7 @@ class ClientboundBatchSyncValuePacket : NettyPacket {
3030
}
3131

3232
private constructor(buf: SurfByteBuf) {
33-
val unknownSyncValues = objectListOf<String>()
33+
val unknownSyncValues = mutableObjectListOf<String>()
3434

3535
syncValues = buf.readList { buf ->
3636
val syncId = buf.readUtf()

0 commit comments

Comments
 (0)