From cfd73cb19f99317a1f410188891ff9cda50dbb88 Mon Sep 17 00:00:00 2001 From: sirjonasxx <36828922+sirjonasxx@users.noreply.github.com> Date: Fri, 25 Dec 2020 04:52:28 +0100 Subject: [PATCH] fix1 --- .../protocol/connection/proxy/unity/UnityCommunicator.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/G-Earth/src/main/java/gearth/protocol/connection/proxy/unity/UnityCommunicator.java b/G-Earth/src/main/java/gearth/protocol/connection/proxy/unity/UnityCommunicator.java index 3d158e1..db837cd 100644 --- a/G-Earth/src/main/java/gearth/protocol/connection/proxy/unity/UnityCommunicator.java +++ b/G-Earth/src/main/java/gearth/protocol/connection/proxy/unity/UnityCommunicator.java @@ -13,7 +13,6 @@ import gearth.protocol.packethandler.unity.UnityPacketHandler; import javax.websocket.*; import javax.websocket.server.ServerEndpoint; import java.io.IOException; -import java.nio.ByteBuffer; import java.util.Arrays; @ServerEndpoint(value = "/packethandler") @@ -36,15 +35,11 @@ public class UnityCommunicator { @OnOpen public void onOpen(Session session) throws IOException { - + session.setMaxBinaryMessageBufferSize(1024 * 1024 * 100); } @OnMessage public void onMessage(byte[] b, Session session) throws IOException { -// session.getBasicRemote().sendText(message.toUpperCase()); -// session.getBasicRemote().sendBinary(ByteBuffer.wrap(b)); -// System.out.println("received " + new HPacket(b).toString()); - byte[] packet = Arrays.copyOfRange(b, 1, b.length); if (hProxy == null && b[0] == 1) {