From 9c0b9afae2b870d20ecb30108cab49517fc6f93d Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Thu, 11 May 2023 21:10:38 -0400 Subject: [PATCH] Make `KcpTunnel` public --- .../emu/grasscutter/server/game/GameSessionManager.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/emu/grasscutter/server/game/GameSessionManager.java b/src/main/java/emu/grasscutter/server/game/GameSessionManager.java index 26146b81f..fde9317fd 100644 --- a/src/main/java/emu/grasscutter/server/game/GameSessionManager.java +++ b/src/main/java/emu/grasscutter/server/game/GameSessionManager.java @@ -5,11 +5,12 @@ import emu.grasscutter.utils.Utils; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.channel.DefaultEventLoop; -import java.net.InetSocketAddress; -import java.util.concurrent.ConcurrentHashMap; import kcp.highway.KcpListener; import kcp.highway.Ukcp; +import java.net.InetSocketAddress; +import java.util.concurrent.ConcurrentHashMap; + public class GameSessionManager { private static final DefaultEventLoop logicThread = new DefaultEventLoop(); private static final ConcurrentHashMap sessions = new ConcurrentHashMap<>(); @@ -95,7 +96,7 @@ public class GameSessionManager { return listener; } - interface KcpTunnel { + public interface KcpTunnel { InetSocketAddress getAddress(); void writeData(byte[] bytes);