From 154a55e9619e2ae2284fe5a99b1b60e092883c09 Mon Sep 17 00:00:00 2001 From: PeytonPlayz595 <106421860+PeytonPlayz595@users.noreply.github.com> Date: Mon, 18 Dec 2023 17:25:59 -0500 Subject: [PATCH] oops --- src/net/io/WebSocketNetworkManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/io/WebSocketNetworkManager.java b/src/net/io/WebSocketNetworkManager.java index 824a14a..2723344 100644 --- a/src/net/io/WebSocketNetworkManager.java +++ b/src/net/io/WebSocketNetworkManager.java @@ -31,8 +31,8 @@ public class WebSocketNetworkManager extends WebSocketServlet { } @OnWebSocketMessage - public void onMessage(byte[] data, int offset, int length) { - ByteBuffer buffer = ByteBuffer.wrap(data, offset, length); + public void onMessage(Session session, byte[] data, int offset, int length) { + ByteBuffer buffer = ByteBuffer.wrap(data); receivedBuffers.add(buffer); }