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

Commit 1e8433e

Browse files
committed
feat: replace immutable list with mutable list for unknown sync values
1 parent abf4113 commit 1e8433e

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/ClientboundBatchSyncSetPacket.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ 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
9+
import dev.slne.surf.cloud.api.common.util.mutableObjectListOf
1010
import dev.slne.surf.cloud.core.common.sync.CommonSyncRegistryImpl
1111
import dev.slne.surf.cloud.core.common.sync.SyncSetImpl
1212
import dev.slne.surf.surfapi.core.api.util.logger
@@ -30,7 +30,7 @@ class ClientboundBatchSyncSetPacket : NettyPacket {
3030
}
3131

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

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

0 commit comments

Comments
 (0)