Replace MutableList with List in ByteBufBodyHandler

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 3 years ago
parent e3fde7f2a0
commit 2cc4b34ab3
  1. 2
      buffer/src/main/kotlin/org/openrs2/buffer/ByteBufBodyHandler.kt

@ -24,7 +24,7 @@ public class ByteBufBodyHandler @Inject constructor(
subscription.request(Long.MAX_VALUE) subscription.request(Long.MAX_VALUE)
} }
override fun onNext(item: MutableList<ByteBuffer>) { override fun onNext(item: List<ByteBuffer>) {
for (b in item) { for (b in item) {
buf.addComponent(Unpooled.wrappedBuffer(b)) buf.addComponent(Unpooled.wrappedBuffer(b))
} }

Loading…
Cancel
Save